IDWritePaintReader::SetColorPaletteIndex method (dwrite_3.h)

Sets the current color palette index. The default value is zero. Changing the palette index can affect the appearance of a glyph if its definition references colors in the color palette. If that's the case, then the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_PALETTE flag via the glyphAttributes output parameter.

Syntax

HRESULT SetColorPaletteIndex(
  UINT32 colorPaletteIndex
);

Parameters

colorPaletteIndex

Type: UINT32

Specifies the color palette index.

Return value

A standard HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 1.2 or later)
Header dwrite_3.h