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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for