SKColorTable Constructors

Definition

Overloads

SKColorTable()

Creates a new, empty color table with 256 empty elements.

SKColorTable(SKColor[])

Creates a color table with the provided unpremultiplied colors, up to MaxLength (256) colors can be provided.

SKColorTable(SKPMColor[])

Creates a color table with the provided premultiplied colors, up to MaxLength (256) colors can be provided.

SKColorTable(Int32)

Creates a color table with the specified number of elements, with empty colors.

SKColorTable(SKColor[], Int32)

Creates a color table with the provided unpremultiplied colors, but only consumes the first count elements from the colors array.

SKColorTable(SKPMColor[], Int32)

Creates a color table with the provided premultiplied colors, but only consumes the first count elements from the colors array.

SKColorTable()

Creates a new, empty color table with 256 empty elements.

public SKColorTable ();

Applies to

SKColorTable(SKColor[])

Creates a color table with the provided unpremultiplied colors, up to MaxLength (256) colors can be provided.

public SKColorTable (SkiaSharp.SKColor[] colors);

Parameters

colors
SKColor[]

The unpremultiplied colors to initialize with.

Remarks

The colors will be automatically premultiplied.

Applies to

SKColorTable(SKPMColor[])

Creates a color table with the provided premultiplied colors, up to MaxLength (256) colors can be provided.

public SKColorTable (SkiaSharp.SKPMColor[] colors);

Parameters

colors
SKPMColor[]

The premultiplied colors to initialize with.

Applies to

SKColorTable(Int32)

Creates a color table with the specified number of elements, with empty colors.

public SKColorTable (int count);

Parameters

count
Int32

The number of empty colors to initialize with.

Applies to

SKColorTable(SKColor[], Int32)

Creates a color table with the provided unpremultiplied colors, but only consumes the first count elements from the colors array.

public SKColorTable (SkiaSharp.SKColor[] colors, int count);

Parameters

colors
SKColor[]

The unpremultiplied colors to initialize with.

count
Int32

The number of colors to initialize with.

Applies to

SKColorTable(SKPMColor[], Int32)

Creates a color table with the provided premultiplied colors, but only consumes the first count elements from the colors array.

public SKColorTable (SkiaSharp.SKPMColor[] colors, int count);

Parameters

colors
SKPMColor[]

The premultiplied colors to initialize with.

count
Int32

The number of colors to initialize with.

Applies to