Struct BlurParams
Contains members that specify the nature of a Gaussian blur.
Namespace: Dapplo.Windows.Gdi32.Structs
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public struct BlurParams
Remarks
Cannot be pinned with GCHandle due to bool value.
Methods
| Improve this Doc View SourceCreate(Single, Boolean)
Declaration
public static BlurParams Create(float radius, bool expandEdges)
Parameters
Type | Name | Description |
---|---|---|
System.Single | radius | Real number that specifies the blur radius (the radius of the Gaussian convolution kernel) in pixels. The radius must be in the range 0 through 255. As the radius increases, the resulting bitmap becomes more blurry. |
System.Boolean | expandEdges | Boolean value that specifies whether the bitmap expands by an amount equal to the blur radius. If TRUE, the bitmap expands by an amount equal to the radius so that it can have soft edges. If FALSE, the bitmap remains the same size and the soft edges are clipped. |
Returns
Type | Description |
---|---|
BlurParams |