get_pixel


color get_pixel(handle device,
                int x,
                int y)

This function obtains the color of a pixel.

Parameters

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.

Return

color

The color of the pixel or error_return::color if an error occurred.

Notes

If the pixel lies outside the clipping region, error_return::color is returned.