LensBlurEffect Members

The LensBlurEffect type exposes the following members.

Constructors

  Name Description
Public method LensBlurEffect(IImageProvider)

Creates and initializes a new LensBlurEffect with a source and default values.

Public method LensBlurEffect(IImageProvider, IImageProvider)

Creates and initializes a new LensBlurEffect with the specified source, kernel map and default values.

Public method LensBlurEffect(IImageProvider, ILensBlurKernel)

Creates and initializes a new LensBlurEffect with the specified source and kernel.

Public method LensBlurEffect(IImageProvider, IImageProvider, ILensBlurKernel)

Creates and initializes a new LensBlurEffect with the specified source, kernel map and kernel.

Public method LensBlurEffect(IImageProvider, IImageProvider, IVectorView<(Of <<'(ILensBlurKernel>)>>))

Creates and initializes a new LensBlurEffect with the specified source, kernel map and one or more kernels.

Methods

  Name Description
Public method Close  
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBitmapAsync Create a Bitmap with the contents of the image provider.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInfoAsync Asynchronously get information about this image provider.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Lock Lock the image provider for the purpose of rendering.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method PreloadAsync Perform any loading (expensive operations typically involving I/O) needed to render or get info from this image provider.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Extension Methods

  Name Description
Public Extension Method GetBitmapAsync Create a WriteableBitmap with the contents of the image provider. (Defined by ImageProviderExtensions.)
Public Extension Method Then<(Of <<'(TImageConsumer>)>>) Enables a fluid way of chaining multiple IImageProviders and IImageConsumers. (Defined by ImageProviderExtensions.)

Properties

  Name Description
Public property BlendKernelWidth

The width of the band between out of focus areas blurred with different kernels that gets blended, thus providing a smooth transition.

Range [0, 255].

Public property KernelMap

An image source representing a kernel map, specifying which kernel should be used on each pixel.

Each pixel either gets blurred with one of the kernels, or is not blurred and considered to be a part of the focus area.

Kernels are referenced via zero-based indices, e.g. the area that is to be blurred with the first kernel should be referred to by 0, the second kernel by the value of 1 and so forth. Pixels in the focus area should be marked with the value 255.

Public property Kernels

Kernels used to blur the out of focus areas of the source image.

Public property Quality

Quality of the result.

Changing quality of the effect affects time and memory consumption of the effect by adjusting the working size. The working size of the effect is dependent on the Source's size, so a lower Quality value might be necessary to avoid an OutOfMemoryException.

Range [0.0, 1.0]. Default value is 1.

Public property Source The IImageProvider that will be used as source.

Last updated 19 June 2014

Back to top

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×