color get_pixel(handle device, int x, int y)
This function obtains the color of a pixel.
handle device
The handle of the device context.
int x
The logical x-coordinate of the position of the pixel.
int y
The logical y-coordinate of the position of the pixel.
color
The color of the pixel or error_return::color if an error occurred.
If the pixel lies outside the clipping region, error_return::color is returned.