get_nearest_color


color get_nearest_color(handle device,
                        color nearest)

This function obtains the color value from the palette that will be used when a specific color value is requested.

Parameters

handle device

The handle of the device context whose palette is being queried.

color nearest

The red, green, blue value to be matched.

Return

color

error_return::color An error occurred.
Other The color within the palette that most closely matches the specified color.