Beispiel #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            System.Drawing.Bitmap image = new Bitmap(picSource.BackgroundImage);
            // create filter
            AForge.Imaging.Filters.Jitter filter = new AForge.Imaging.Filters.Jitter();
            // apply filter
            System.Drawing.Bitmap newImage = filter.Apply(image);

            picOutput.BackgroundImage = newImage;
        }
Beispiel #2
0
 public static Bitmap ToJitter(this Bitmap bitmap)
 {
     AForge.Imaging.Filters.Jitter filter = new AForge.Imaging.Filters.Jitter();
     return(filter.Apply(AForge.Imaging.Image.Clone(bitmap, PixelFormat.Format24bppRgb)));
 }