On Dec 9, 2006, at 8:27 AM, Christian Giordano wrote:
bytesSize = BmpBitsSize(bitmap);
One of the wrinkles of bitmap manipulation is that BmpBitsSize only returns a 16-bit value, so it quietly returns garbage for the size (in bytes) of a large bitmap (320x320x1, for example). Coercing rowByte to an unsigned long and multiplying by the height appears to always give the correct size.
-Doug -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
