Beispiel #1
0
        private void rangeEditor4_Notify(object sender, EventArgs e)
        {
            if (!UsingColPenNow)
            {
                changeData();
            }

            GrayPic.Invalidate();
        }
Beispiel #2
0
        private void checkBoxGray_CheckedChanged(object sender, EventArgs e)
        {
            if (!UsingColPenNow)
            {
                changeData();
            }

            GrayEditor.Enabled = checkBoxGray.Checked;
            if (!checkBoxGray.Checked)
            {
                GrayPic.Cursor = Cursors.Default;
            }
            GrayPic.Invalidate();
        }
Beispiel #3
0
        public void GetDataFrom(ColorRange cr)
        {
            this.Operation             = cr.operation;
            this.checkBoxRed.Checked   = cr.redUsed;
            this.RedEditor.Up          = cr.redUp;
            this.RedEditor.Down        = cr.redDown;
            this.checkBoxGreen.Checked = cr.greenUsed;
            this.GreenEditor.Up        = cr.greenUp;
            this.GreenEditor.Down      = cr.greenDown;
            this.checkBoxBlue.Checked  = cr.blueUsed;
            this.BlueEditor.Up         = cr.blueUp;
            this.BlueEditor.Down       = cr.blueDown;
            this.checkBoxGray.Checked  = cr.grayUsed;
            this.GrayEditor.Up         = cr.grayUp;
            this.GrayEditor.Down       = cr.grayDown;

            if (RedEditor.Enabled)
            {
                curImage = ActImage.red;
            }
            else if (GreenEditor.Enabled)
            {
                curImage = ActImage.green;
            }
            else if (BlueEditor.Enabled)
            {
                curImage = ActImage.blue;
            }
            else
            {
                curImage = ActImage.red;
            }
            changeImage();

            ColorPic.Invalidate();
            GrayPic.Invalidate();
        }