Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::GetPixel
CATResult CATImage::GetPixel ( CATInt32  x,
CATInt32  y,
CATColor color 
) const

GetPixel() retrieves the red, green, blue, and alpha values for a specified pixel.

This is for convenience and prototyping - for high-speed image processing you'll need to work more directly with the image buffer.

Parameters:
x - x position within the image of the pixel
y - y position within the image of the pixel
color - receives the color of the pixel
Returns:
CATResult result code. CAT_SUCCESS on success.
See also:
SetPixel()

Definition at line 806 of file CATImage.cpp.

References CATCOLOR::a, CATCOLOR::b, CATCOLOR::g, GetPixel(), and CATCOLOR::r.


Generated on Mon Feb 11 04:10:34 2008 for Game Accessibility Suite by doxygen 1.5.4