public MainForm() { InitializeComponent(); height = pictureBox1.Height; width = pictureBox1.Width; img = new ColorImage(height, width); bmp = new System.Drawing.Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb); comboBox1.SelectedIndex = 0; selectedFilter = (FilterName) comboBox1.SelectedIndex; initFilters(); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { selectedFilter = (FilterName) comboBox1.SelectedIndex; }