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(); }
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(); }