Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::CopyOutBGR
CATResult CATImage::CopyOutBGR ( CATUInt8 rgbBuf,
CATInt32  offsetX,
CATInt32  offsetY,
CATInt32  width,
CATInt32  height,
CATInt32  widthBytes 
)

CopyOutBGR() copies the RGB data from a rectangle into a buffer and flips the Red and Blue channels. The buffer must be width*height*3 bytes in size.

Parameters:
rgbBuf - raw rgb buffer of width/height size
offsetX - x offset to copy from
offsetY - y offset to copy from
width - width to copy
height - height to copy
widthBytes - width of line in bytes (w/pad)
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 1645 of file CATImage.cpp.

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

Referenced by CATWindow::OSDraw().


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