예제 #1
0
 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();
 }
예제 #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     selectedFilter = (FilterName) comboBox1.SelectedIndex;
 }