CImage::GetPixel
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CImage::GetPixel 

Retrieves the color of the pixel at the location specified by x and y.


COLORREF GetPixel(
   int x,
   int y 
) const throw( );

Parameters

x

The x-coordinate of the pixel.

y

The y-coordinate of the pixel.

The red, green, blue (RGB) value of the pixel. If the pixel is outside of the current clipping region, the return value is CLR_INVALID.

Show:
© 2016 Microsoft