Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |