示例#1
0
 public static void ChangeScheme(int?rShift, int?gShift, int?bShift, int?aShift)
 {
     RShift = rShift ?? RShift;
     GShift = gShift ?? GShift;
     BShift = bShift ?? BShift;
     AShift = aShift ?? AShift;
     Colour.Reset();
     FillStyles.Initialize();
 }
示例#2
0
        static void Reset(IFactory factory)
        {
            if (factory == null)
            {
                return;
            }
            Factory?.Dispose();
#if Window
            Factory = factory as IWindowFactory;
#else
            Factory = factory;
#endif
            Renderer  = Factory.newRenderer();
            FloodFill = Factory.newFloodFill();

            FillStyles.Initialize();
        }