Jitter filter
상속: IFilter
예제 #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;
        }
예제 #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;
 }
 private Bitmap AddJitterEffect(ref Bitmap sourceBitmap)
 {
     Jitter jitter = new Jitter(this.jitterParam);
     jitter.ApplyInPlace(sourceBitmap);
     return sourceBitmap;
 }
예제 #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)));
 }