Ejemplo n.º 1
0
        public Main()
        {
            InitializeComponent();

            lastFocused = null;

            scalingDict = new Dictionary <ToolStripMenuItem, GrayScaleMode>();
            scalingDict[averageToolStripMenuItem]          = GrayScaleMode.Average;
            scalingDict[lumaToolStripMenuItem]             = GrayScaleMode.Luma;
            scalingDict[desaturationToolStripMenuItem]     = GrayScaleMode.Desaturation;
            scalingDict[decompositionMaxToolStripMenuItem] = GrayScaleMode.DecompositionMax;
            scalingDict[decompositionMinToolStripMenuItem] = GrayScaleMode.DecompositionMin;

            RgbButtons    = new ToolStripMenuItem[3];
            RgbButtons[0] = RedChannel;
            RgbButtons[1] = GreenChannel;
            RgbButtons[2] = BlueChannel;
        }