SKMaskFilter Class

Definition

Mask filters perform transformations on an alpha-channel mask before drawing. A mask filter is set using the MaskFilter property on SKPaint type.

public class SKMaskFilter : SkiaSharp.SKObject
Inheritance

Fields

TableMaxLength

Gets the maximum number of colors in the color lookup table.

Methods

ConvertRadiusToSigma(Single)

Converts from the (legacy) idea of specifying the blur "radius" to the standard notion of specifying its sigma.

ConvertSigmaToRadius(Single)

Converts from the standard notion of specifying the blur sigma to the (legacy) idea of specifying its "radius".

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, Boolean)

Creates a mask filter that applies a blur.

CreateBlur(SKBlurStyle, Single, SKRect, SKBlurMaskFilterFlags)

Creates a mask filter that applies a blur.

CreateClip(Byte, Byte)

Creates a mask filter that clips the alpha channel to the specified minimum and maximum alpha values.

CreateGamma(Single)

Creates a mask filter that applies gamma.

CreateTable(Byte[])

Creates a mask filter that applies a table lookup on each of the alpha values in the mask.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKMaskFilter and optionally releases the managed resources.

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Applies to