LensBlurEffect.DefocusStrategy Property

LensBlurEffect DefocusStrategy Property Lumia Imaging SDK

Determines whether pixels should be taken from the focus area or not when applying blur to the rest of the image.

Default value is ExcludeFocusArea.

Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255
Syntax
public LensBlurDefocusStrategy DefocusStrategy { get; set; }
public LensBlurDefocusStrategy DefocusStrategy { get; set; }
Public Property DefocusStrategy As LensBlurDefocusStrategy 
	Get 
	Set
Public Property DefocusStrategy As LensBlurDefocusStrategy 
	Get 
	Set
public:
virtual property LensBlurDefocusStrategy DefocusStrategy {
	LensBlurDefocusStrategy get () sealed;
	void set (LensBlurDefocusStrategy value) sealed;
}
public:
virtual property LensBlurDefocusStrategy DefocusStrategy {
	LensBlurDefocusStrategy get () sealed;
	void set (LensBlurDefocusStrategy value) sealed;
}
JavaScript
function get_DefocusStrategy();
function set_DefocusStrategy(value);
function get_DefocusStrategy();
function set_DefocusStrategy(value);

Property Value

Type: LensBlurDefocusStrategy
Remarks
This property makes a difference at the edge of the focus area. Which value to use depends on how the kernel map relates to the image contents. If the edge of the focus area follows a sharp contrast in the source image then the focus area should be excluded. That will help protect the sharp contrast between the focus area and the blurred area. This is usually the case when the mask is a result of segmentation. In such cases including the focus area may produce a halo effect near the focus area. If the kernel map does not relate to the contents of the source image then the focus are should be included. That will create a smooth transition between the focus are and the blurred area.
See Also
Show: