Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::Create
CATResult CATImage::Create ( CATInt32  width,
CATInt32  height,
bool  init,
bool  transparent 
) [protected]

Create - internal image creation function. Creates the buffer and sets it up, then calls AddRef().

Parameters:
width - width of image in pixels.
height - height of image in pixels.
init - if true, initializes image pixels to 0.
transparent - if false, sets all alpha channels to 255 (opaque). Otherwise, sets the alpha channels to 0 (transparent). Ignored if init == false.
Returns:
CATResult result code.
See also:
CATResult_CORE_ENUM, CATResult_IMAGE_ENUM

Definition at line 390 of file CATImage.cpp.

References AddRef(), CAT_ERR_IMAGE_INVALID_SIZE, CAT_ERR_OUT_OF_MEMORY, CAT_SUCCESS, CATRESULT, Clear(), fData, fHeight, fOwnData, fWidth, and kBytesPerPixel.

Referenced by CreateImage(), CreateImageFromDIB(), and Load().


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