예제 #1
0
        public ColorForm(Form1 form1)
        {
            this.parent = form1;
            InitializeComponent();

            this.pictureBox1.Image = ColorProcessing.GetPreviev(parent.Pic, this.pictureBox1.Width,
                                                                this.pictureBox1.Height, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f);
        }
예제 #2
0
 private void trackBar_Scroll(object sender, EventArgs e)
 {
     this.pictureBox1.Image = ColorProcessing.GetPreviev(
         parent.Pic,
         this.pictureBox1.Width,
         this.pictureBox1.Height,
         this.brightnessTrackBar.Value * 0.1f,
         this.gammaTrackBar.Value * 0.1f,
         this.redTrackBar.Value * 0.1f,
         this.greenTrackBar.Value * 0.1f,
         this.blueTrackBar.Value * 0.1f,
         this.alphaTrackBar.Value * 0.1f);
 }