CRasterImage::GetPixel

unsigned int GetPixel( int column, int row ) const;

Parameters

column  zero based image pixel column index
row zero based image pixel row index. Row index grows from bottom to top.

Return Value

Color value of specified pixel. The 32 bit unsigned int color value format used by CRasterImage object is compatible with COLORREF type values produced by Win32 RGB macro. If storage type of the image is GL_RGBA then highest byte of the unsigned int color value specifies alhpa channel value.

Remarks

The GetPixel function retrieves color value of specified image pixel.

This function is available since ClassGL version 3.6.10.

See Also

CRasterImage class methods