コード例 #1
0
        public NoizeGenForm(Form OwnerForm, string Mode = "RGB")
        {
            InitializeComponent();

            if (OwnerForm is ResultBox)
            {
                ownerForm = (ResultBox)OwnerForm;
            }
            else if (OwnerForm is Lab2Form)
            {
                lab2OwnerForm = (Lab2Form)OwnerForm;
            }

            this.FormClosing += new FormClosingEventHandler(NGFormClosing);
            mode              = Mode;
            colorLayer        = parseModeIntoLayerCode(Mode);
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            switch (comboBox1.SelectedItem.ToString())
            {
            case "RGB":
                TransformResults = SplitRgb(source);
                break;

            case "HSV":
                TransformResults = ConvertRGBToHSV(source);
                break;

            case "HSL":
                TransformResults = ConvertRGBToHSL(source);
                break;

            case "YUV":
                TransformResults = ConvertRGBToYUV(source);
                break;
            }
            ResultBox rb = new ResultBox(null, null /*"Transform to " + comboBox1.SelectedItem.ToString()*/, TransformResults, comboBox1.SelectedItem.ToString());
            //rb.Show();
        }
コード例 #3
0
ファイル: ResultBox.cs プロジェクト: NIKENIT/Zotins
        public ResultBox(Bitmap image = null, string title = "", MyImage[] images = null, string Mode = "")
        {
            InitializeComponent();
            if (image != null)
            {
                originalImage = new Bitmap(image);
                localImage    = new Bitmap(image);
                //localImage.LockBits();
                pictureBox1.Image = localImage;
                pictureBox1.Invalidate();
                this.Text = "Transform Field: " + title;
                mode      = Mode;
            }

            if (images != null)
            {
                foreach (MyImage tempImage in images)
                {
                    ResultBox result = new ResultBox(tempImage.image, tempImage.fieldNameForTransform, null, Mode);
                    result.Show();
                }
                this.Close();
            }
        }
コード例 #4
0
 public ImageCorrectionForm(ResultBox form)
 {
     InitializeComponent();
     ownerForm         = form;
     this.FormClosing += new FormClosingEventHandler(IGFormClosing);
 }