SKColorFilter Class

Definition

Color filters for use with the ColorFilter property of a SKPaint.

public class SKColorFilter : SkiaSharp.SKObject
Inheritance

Fields

ColorMatrixSize

The size of the color matrix.

TableMaxLength

The size of a color table for a color component.

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
OwnsHandle

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

(Inherited from SKObject)

Methods

CreateBlendMode(SKColor, SKBlendMode)

Creates a new color filter that uses the specified color and mode.

CreateColorMatrix(Single[])

Creates a new color filter that transforms a color by a 4x5 (row-major) matrix.

CreateCompose(SKColorFilter, SKColorFilter)

Creates a new composition color filter, whose effect is to first apply the inner filter and then apply the outer filter to the result of the inner.

CreateHighContrast(Boolean, SKHighContrastConfigInvertStyle, Single)

Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision.

CreateHighContrast(SKHighContrastConfig)

Creates a new high contrast color filter which provides transformations to improve contrast for users with low vision.

CreateLighting(SKColor, SKColor)

Creates a new lighting color filter that multiplies the RGB channels by one color, and then adds a second color, pinning the result for each component to [0..255].

CreateLumaColor()

Creates a new luminance-to-alpha color filter.

CreateTable(Byte[])

Creates a new table color filter.

CreateTable(Byte[], Byte[], Byte[], Byte[])

Creates a new table color filter.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

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

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)

Applies to