Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::Clear
CATResult CATImage::Clear ( bool  transparent = true  ) 

Clear() sets all the pixels in the image to 0.

Parameters:
transparent - if false, sets all alpha channels to 255 (opaque). Otherwise, sets the alpha channels to 0 (transparent).
Returns:
CATResult result code.

Definition at line 426 of file CATImage.cpp.

References AbsWidth(), CAT_ERR_IMAGE_MUST_INITIALIZE, CAT_SUCCESS, CATASSERT, CATRESULT, fData, fHeight, fWidth, kBytesPerPixel, XOffsetAbs(), and YOffsetAbs().

Referenced by Create().


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