Jitter filter
Inheritance: IFilter
Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public static Bitmap Jitter(Bitmap bmp, int value)
 {
     // create filter
     Jitter filter = new Jitter(value);
     // apply the filter
     filter.ApplyInPlace(bmp);
     return bmp;
 }
Ejemplo n.º 3
0
 private Bitmap AddJitterEffect(ref Bitmap sourceBitmap)
 {
     Jitter jitter = new Jitter(this.jitterParam);
     jitter.ApplyInPlace(sourceBitmap);
     return sourceBitmap;
 }
Ejemplo n.º 4
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)));
 }