public ColorizeViewer()
        {
            InitializeComponent();
            colorizePixel = new ColorTransform(ColorizePixelExpandMult);
            colorizeModeCombobox.SelectedIndex = 1;

            refColorModeComboBox.SelectedIndex = 0;

            InitRefColorMenu();

            library = new ColorLibrary();

            // initialize color array
            baseColors    = new HSVColor[4];
            baseColors[0] = HSVColor.FromRGB(255, 0, 0);
            baseColors[1] = HSVColor.FromRGB(0, 255, 0);
            baseColors[2] = HSVColor.FromRGB(0, 0, 255);
            baseColors[3] = HSVColor.FromRGB(255, 255, 255);

            fileColors = new HSVColor[4];

            // save buttons in an array for easy lookup
            colorButtons    = new Button[4];
            colorButtons[0] = color0Button;
            colorButtons[1] = color1Button;
            colorButtons[2] = color2Button;
            colorButtons[3] = color3Button;

            // init button background colors
            UpdateButtons();
        }
        public ColorizeViewer()
        {
            InitializeComponent();
            colorizePixel = new ColorTransform(ColorizePixelExpandMult);
            colorizeModeCombobox.SelectedIndex = 1;

            refColorModeComboBox.SelectedIndex = 0;

            InitRefColorMenu();

            library = new ColorLibrary();

            // initialize color array
            baseColors = new HSVColor[4];
            baseColors[0] = HSVColor.FromRGB(255, 0, 0);
            baseColors[1] = HSVColor.FromRGB(0, 255, 0);
            baseColors[2] = HSVColor.FromRGB(0, 0, 255);
            baseColors[3] = HSVColor.FromRGB(255, 255, 255);

            fileColors = new HSVColor[4];

            // save buttons in an array for easy lookup
            colorButtons = new Button[4];
            colorButtons[0] = color0Button;
            colorButtons[1] = color1Button;
            colorButtons[2] = color2Button;
            colorButtons[3] = color3Button;

            // init button background colors
            UpdateButtons();
        }