Пример #1
0
        private void Radio8Bpp_CheckedChanged(object sender, EventArgs e)
        {
            if (this.Radio8Bpp.Checked)
            {
                this.RadioColor.Enabled = true;
                this.RadioGrayscale.Enabled = true;
                this.RadioCustom.Enabled = true;

                if (this.RadioColor.Checked)
                {
                    this.palette = Palette.EightBppColorPalette;
                }
                else if (this.RadioCustom.Checked)
                {
                    this.palette = Palette.EightBppGrayscalePalette;
                }
                else
                {
                    this.RadioGrayscale.Checked = true;
                    this.palette = Palette.EightBppGrayscalePalette;
                }

                this.drawer = new EightBppDrawer();
            }
        }
Пример #2
0
        private void Radio16Bpp_CheckedChanged(object sender, EventArgs e)
        {
            if (this.Radio16Bpp.Checked)
            {
                this.RadioColor.Enabled = true;
                this.RadioGrayscale.Enabled = false;
                this.RadioCustom.Enabled = false;

                this.palette = null;
                this.drawer = new SixteenBppDrawer();
            }
        }
Пример #3
0
        private void Radio2Bpp_CheckedChanged(object sender, EventArgs e)
        {
            if (this.Radio2Bpp.Checked)
            {
                this.RadioColor.Enabled = false;
                this.RadioGrayscale.Enabled = true;
                this.RadioCustom.Enabled = true;

                this.RadioGrayscale.Checked = true;
                this.palette = Palette.TwoBppGrayscalePalette;

                this.drawer = new TwoBppDrawer();
            }
        }