public Bitmap ToExtractNormalizedRGBChannel(Bitmap Im) { AForge.Imaging.Filters.ExtractNormalizedRGBChannel Img = new ExtractNormalizedRGBChannel(); Bitmap bmImage = AForge.Imaging.Image.Clone(new Bitmap(Im), PixelFormat.Format24bppRgb); return(Img.Apply(bmImage)); }
private void rGBToolStripMenuItem_Click(object sender, EventArgs e) { ExtractNormalizedRGBChannel rgb = new ExtractNormalizedRGBChannel(); pictureBox2.Image = rgb.Apply((Bitmap)pictureBox1.Image); }