Edit

Face.GetPaletteColors Method

Definition

Overloads

Name Description
GetPaletteColors(Int32)

Returns all color entries for the specified font palette.

GetPaletteColors(Int32, Span<HBColor>)

Fills a span with the color entries for the specified font palette.

GetPaletteColors(Int32)

Returns all color entries for the specified font palette.

public HarfBuzzSharp.HBColor[] GetPaletteColors(int paletteIndex);

Parameters

paletteIndex
Int32

The zero-based index of the palette.

Returns

An array of HBColor values for the palette, in BGRA byte order.

Applies to

GetPaletteColors(Int32, Span<HBColor>)

Fills a span with the color entries for the specified font palette.

public int GetPaletteColors(int paletteIndex, Span<HarfBuzzSharp.HBColor> colors);

Parameters

paletteIndex
Int32

The zero-based index of the palette.

colors
Span<HBColor>

A span to receive the HBColor values.

Returns

The number of color entries written to colors.

Applies to