SKMaskFilter.CreateBlur Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateBlur(SKBlurStyle, Single) |
Creates a mask filter that applies a blur. |
| CreateBlur(SKBlurStyle, Single, Boolean) |
Creates a mask filter that applies a blur. |
CreateBlur(SKBlurStyle, Single)
Creates a mask filter that applies a blur.
public static SkiaSharp.SKMaskFilter CreateBlur(SkiaSharp.SKBlurStyle blurStyle, float sigma);
Parameters
- blurStyle
- SKBlurStyle
The style of blurring.
- sigma
- Single
The standard deviation (greater than 0) of the Gaussian blur to apply.
Returns
Returns the new SKMaskFilter, or null on error.
Applies to
CreateBlur(SKBlurStyle, Single, Boolean)
Creates a mask filter that applies a blur.
public static SkiaSharp.SKMaskFilter CreateBlur(SkiaSharp.SKBlurStyle blurStyle, float sigma, bool respectCTM);
Parameters
- blurStyle
- SKBlurStyle
The style of blurring.
- sigma
- Single
The standard deviation (greater than 0) of the Gaussian blur to apply.
- respectCTM
- Boolean
true to modify the blur's sigma by the current transformation matrix (CTM); otherwise, false.
Returns
Returns the new SKMaskFilter, or null on error.