예제 #1
0
        private void UpdateCanvas()
        {
            Bitmap     dstImage = new Bitmap(srcImage.Width, srcImage.Height);
            Adjustment a        = new Adjustment();

            if (this.curveRadioButton.Checked)
            {
                dstImage = a.PseudoColor((Bitmap)srcImage.Clone());
            }
            else
            {
                dstImage = a.PseudoColor((Bitmap)srcImage.Clone(), this.ColorTable);
            }

            this.panel1.BackgroundImage = dstImage;
            this.FinalImage             = (Bitmap)dstImage.Clone();
        }