LensBlurEffect Properties

The LensBlurEffect type exposes the following members.

  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 FocusAreaEdgeMirroring

Determines whether pixels in the focus area should be sampled when applying blur. If mirroring is on, then samples that would be located inside the focus area are instead taken from a mirrored location outside it.

Default value is On.

Public property FocusEdgeSoftening

Determines if and how much of the edge of the focus area will be softened.

The default value is Medium.

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.

The maximum number of kernels is 250.

Public property KernelMapType

Determines how the kernel map values should be interpreted.

The default value is ForegroundMask.

Public property Kernels

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

Public property PointLightStrength
The strength with which a point of light is rendererd. Range [1, 10].
Public property PropertyDescriptions
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.
Public property SourceCount
The number of sources that can be set.
Public property SupportedRenderOptions
Supported rendering options.
Show: