示例#1
0
        public BrightnessForm(Form1 form)
        {
            InitializeComponent();
            this.form = form;
            trackBar_Brightness.ValueChanged += TrackBar_ValueChanged;
            trackBar_Contrast.ValueChanged   += TrackBar_ValueChanged;

            effects = new PLL.Effects();
        }
示例#2
0
        private void layers_listView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (layers_listView.SelectedItems.Count > 0)
            {
                Layers.CurrentLayer = layers.GetLayerByName(layers_listView.SelectedItems[0].Text);

                alpha_numericUpDown.ValueChanged -= alpha_numericUpDown_ValueChanged;
                alpha_numericUpDown.Value         = (int)(Layers.CurrentLayer.Transparence * 100);
                alpha_numericUpDown.ValueChanged += alpha_numericUpDown_ValueChanged;

                effects = new PLL.Effects(Layers.CurrentLayer.Foreground);
                modes   = new BlendModes(Layers.CurrentLayer);

                pictureBox.Image = layers.LayersArray[layers.LayersArray.Length - 1].Foreground.EditImage;
                PreviewSizeChange();
            }
        }
示例#3
0
        public BinarizationForm(Form1 form)
        {
            InitializeComponent();
            this.form = form;

            if (Layers.CurrentLayer != null)
            {
                effects = new PLL.Effects(Layers.CurrentLayer.Foreground);

                effects.Binarization(trackBar1.Value);
                form.pictureBox.Refresh();

                value_textBox.Text = trackBar1.Value.ToString();
                form.pictureBox.Refresh();

                h = new Histogramm(Layers.CurrentLayer.Foreground);
                chart_Histogram.Series[0].Points.DataBindY(h.GetHistogramm(HistogramType.Brightness));
            }
        }