Blur filter.

The filter performs convolution filter using the blur kernel:

1 2 3 2 1 2 4 5 4 2 3 5 6 5 3 2 4 5 4 2 1 2 3 2 1

For the list of supported pixel formats, see the documentation to Convolution filter.

By default this filter sets Convolution.ProcessAlpha property to , so the alpha channel of 32 bpp and 64 bpp images is blurred as well.

Sample usage:

// create filter Blur filter = new Blur( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance: Convolution
Example #1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb32bpp;
     Af.Blur newFilter = new Af.Blur();
     newFilter.Divisor   = (int)Remap(Math.Abs(divisor), 1, 100);
     newFilter.Threshold = (int)Remap(threshold, 0, 100);
     imageFilter         = newFilter;
 }