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.

MaxColorCubeDimension

The maximum dimension for the color cube.

MaxCubeSize

The maximum dimension for the color cube.

MinColorCubeDimension

The minimum dimension for the color cube.

MinCubeSize

The minimum dimension for the color cube.

TableMaxLength

The size of a color table for a color component.

Methods

CreateBlendMode(SKColor, SKBlendMode)

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

CreateBlendMode(SKColor, SKXferMode)

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

CreateColorCube(Byte[], Int32)

Creates a new color cube look-up table color filter, where (x, y, z) maps to the (R, G, B).

CreateColorCube(SKData, Int32)

Creates a new color cube look-up table color filter, where (x, y, z) maps to the (R, G, B).

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.

CreateGamma(Single)

Creates a new gamma color filter which can be used to perform pixel-by-pixel conversion between linear and power-law color spaces.

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.

CreateXferMode(SKColor, SKXferMode)

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

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.

IsValid3DColorCube(SKData, Int32)

Determines if the provided cube data and dimensions represent a valid color cube.

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