Class BokehBlurMapEffect.Props
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
public sealed class BokehBlurMapEffect.Props : CustomEffectProperties
- Inheritance
-
BokehBlurMapEffect.Props
- Inherited Members
Constructors
Properties
- AlphaMode
Specifies the alpha mode for the input and output. The default value is Premultiplied.
- EdgeMode
Specifies how samples outside the bounds of the input image are calculated.
If this value is Transparent, the effect pads the image with transparent pixels as it applies the blur kernel, resulting in a soft edge. The output will be larger than the input by approximately the blur radius, in pixels. If set to another edge mode, the effect clamps the output to the size of the input image.
The default value is Transparent.
- Input
Provides the input image for the effect.
- MapIsNormalized
Specifies whether the RadiusMap input image is normalized.
If this value is true, the map's alpha values are expected to be in the range [0, 1]. The blur radius at each pixel will be the map's alpha value multiplied by MaxRadius.
If this value is false, the map's alpha values are used directly.
The default value istrue
, which affords easily using the output of most effects as the map input for this effect.
- MaxRadius
Specifies the maximum blur radius that is rendered. If the RadiusMap contains pixels specifying a blur radius larger than this value, then they will be clamped to this value.
The range of this value is [0, 300]. The default value is 30.
- Quality
The quality of the bokeh effect. Performance is affected linearly. For example, a quality of 6 takes about twice as long to render as a quality value of 3.
The range is [1, 10] and the default is 3.
- RadiusLevels
Specifies the number of blur levels to be rendered. The image will be blurred this many times with an exponentially increasing blur radius based on the value of MaxRadius. Increasing this value will improve quality, but also reduce performance.
The range of this value is [1, 30]. The default value is 10.
- RadiusMap
Provides an image where each pixel's alpha component specifies the radius for blurring at that location. Depending on the value of the MapIsNormalized property, this image should either have normalized values in the [0, 1] range, or non-normalized values that are in the [0, MaxRadius] range.