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

SetPixel() sets 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 - color to set pixel to
Returns:
CATResult result code. CAT_SUCCESS on success.
See also:
GetPixel()

Definition at line 879 of file CATImage.cpp.

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


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