Edit

Share via


SKColorFilter Class

Definition

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

public class SKColorFilter : SkiaSharp.SKObject
Inheritance

Fields

Name Description
ColorMatrixSize

The size of the color matrix.

TableMaxLength

The size of a color table for a color component.

Properties

Name Description
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 or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed.

(Inherited from SKNativeObject)

Methods

Name Description
CreateBlendMode(SKColor, SKBlendMode)

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

CreateColorMatrix(ReadOnlySpan<Single>)

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

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.

CreateHslaColorMatrix(ReadOnlySpan<Single>)

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

CreateLerp(Single, SKColorFilter, SKColorFilter)

Creates a new color filter that linearly interpolates between the results of two other color filters.

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].

CreateLinearToSrgbGamma()

Creates a new color filter that converts linear RGB colors to sRGB gamma-encoded colors.

CreateLumaColor()

Creates a new luminance-to-alpha color filter.

CreateSrgbToLinearGamma()

Creates a new color filter that converts sRGB gamma-encoded colors to linear RGB colors.

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

Creates a new table color filter.

CreateTable(Byte[])

Creates a new table color filter.

CreateTable(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

Creates a new table color filter with separate tables for each color component.

CreateTable(ReadOnlySpan<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()

Implemented by derived SKObject types to dispose managed objects that are not owned by this instance.

(Inherited from SKObject)

Applies to