GetRawDataPtr() retrieves the image data ptr. Remember that this may be a sub image, in which case the data ptr returned is to the raw buffer of a parent image. So, any time you access the raw data you should use the XOffsetAbs, YOffsetAbs, AbsWidth, and AbsHeight functions when calculating your pointers into the data. Also remember that if you modify a sub image, you'll be modifying the parent image and any other overlapping sub images. If you want to muck with an image without messing up any others, use CATImage::CopyImage() first to get a base image that owns its own data. Note that the xOffset and yOffset are relative to parent. They will be calculated at runtime if you call this function.
Definition at line 716 of file CATImage.cpp. References fData. Referenced by CreateImageFromDIB(), CATOverlayOpenGL::DrawToScene(), CATOverlayDirect3D9::DrawToScene(), and Load().
|