SKMaskFilter.CreateBlur Method

Definition

Overloads

CreateBlur(SKBlurStyle, Single)

Creates a mask filter that applies a blur.

CreateBlur(SKBlurStyle, Single, SKBlurMaskFilterFlags)

Creates a mask filter that applies a blur.

CreateBlur(SKBlurStyle, Single, SKRect)

Creates a mask filter that applies a blur.

CreateBlur(SKBlurStyle, Single, SKRect, SKBlurMaskFilterFlags)

Creates a mask filter that applies a blur.

CreateBlur(SKBlurStyle, Single, SKRect, 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.

CreateBlur(SKBlurStyle, Single, SKBlurMaskFilterFlags)

Warning

This API is now obsolete.

Creates a mask filter that applies a blur.

[System.Obsolete("Use CreateBlur(SKBlurStyle, float) instead.")]
public static SkiaSharp.SKMaskFilter CreateBlur (SkiaSharp.SKBlurStyle blurStyle, float sigma, SkiaSharp.SKBlurMaskFilterFlags flags);

Parameters

blurStyle
SKBlurStyle

The style of blurring.

sigma
Single

The standard deviation (greater than 0) of the Gaussian blur to apply.

flags
SKBlurMaskFilterFlags

The flags to apply when blurring.

Returns

Returns the new SKMaskFilter, or null on error.

Attributes

CreateBlur(SKBlurStyle, Single, SKRect)

Creates a mask filter that applies a blur.

public static SkiaSharp.SKMaskFilter CreateBlur (SkiaSharp.SKBlurStyle blurStyle, float sigma, SkiaSharp.SKRect occluder);

Parameters

blurStyle
SKBlurStyle

The style of blurring.

sigma
Single

The standard deviation (greater than 0) of the Gaussian blur to apply.

occluder
SKRect

The rectangle for which no pixels need be drawn (because it will be overdrawn with some opaque object).

Returns

Returns the new SKMaskFilter, or null on error.

CreateBlur(SKBlurStyle, Single, SKRect, SKBlurMaskFilterFlags)

Warning

This API is now obsolete.

Creates a mask filter that applies a blur.

[System.Obsolete("Use CreateBlur(SKBlurStyle, float, SKRect) instead.")]
public static SkiaSharp.SKMaskFilter CreateBlur (SkiaSharp.SKBlurStyle blurStyle, float sigma, SkiaSharp.SKRect occluder, SkiaSharp.SKBlurMaskFilterFlags flags);

Parameters

blurStyle
SKBlurStyle

The style of blurring.

sigma
Single

The standard deviation (greater than 0) of the Gaussian blur to apply.

occluder
SKRect

The rectangle for which no pixels need be drawn (because it will be overdrawn with some opaque object).

flags
SKBlurMaskFilterFlags

The flags to apply when blurring.

Returns

Returns the new SKMaskFilter, or null on error.

Attributes

CreateBlur(SKBlurStyle, Single, SKRect, Boolean)

Creates a mask filter that applies a blur.

public static SkiaSharp.SKMaskFilter CreateBlur (SkiaSharp.SKBlurStyle blurStyle, float sigma, SkiaSharp.SKRect occluder, bool respectCTM);

Parameters

blurStyle
SKBlurStyle

The style of blurring.

sigma
Single

The standard deviation (greater than 0) of the Gaussian blur to apply.

occluder
SKRect

The rectangle for which no pixels need be drawn (because it will be overdrawn with some opaque object).

respectCTM
Boolean

Whether or not the blur's sigma is modified by the CTM.

Returns

Returns the new SKMaskFilter, or null on error.

Applies to