unsigned get_system_palette_entries(handle device, unsigned start, unsigned count, palette_entry* entries)
This function obtains a range of entries from the system palette.
The handle of the device context.
The 0-based index of the first entry to be obtained.
The number of entries to be retrieved.
A pointer to a buffer to hold the palette entries. If null is specified, no data is retrieved and the total number of entries in the palette is returned.
|The call failed.
|The number of entries obtained or the total number of entries in the palette.
The function get_device_capabilities with capability index capability::raster may be used to determine if color palettes are supported (see enumerator capability_raster::palette).