Example #1
0
        private void Purify_button_Click(object sender, EventArgs e)
        {
            PurifyOptions_form p   = new PurifyOptions_form(dds, purifyOptions);
            DialogResult       res = p.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.Cancel)
            {
                return;
            }
            purifyOptions = p.PurifyOptions;
            dds.SetPixels(AdjustColors);
            Update_DDSdisplay();
        }
Example #2
0
 public PurifyOptions_form(DdsFile dds, Purify_options options)
 {
     InitializeComponent();
     updateChannels = new bool[] { options.Red, options.Green, options.Blue, options.Alpha };
     PurifyAmount_trackBar.Value  = options.Contrast;
     PurifyRed_checkBox.Checked   = options.Red;
     PurifyGreen_checkBox.Checked = options.Green;
     PurifyBlue_checkBox.Checked  = options.Blue;
     PurifyAlpha_checkBox.Checked = options.Alpha;
     Preview_checkBox.Checked     = options.Preview;
     originalDDS = new DdsFile();
     originalDDS.CreateImage(dds.Resize(new Size(350, 350)), false);
     contrastTrackbarValue = options.Contrast;
     brightTrackbarValue   = options.Brightness;
     UpdatePreview();
 }