I'm having some trouble drawing a bitmap. The bitmap data is stored in a
database record along with some header info. When I try to draw it on the
screen it's all scrambled.
This is basically my code. shape is a pointer to the record and
shape->bitmapBits is the bitmap data. Can anyone spot the problem?
BitmapType *bitmap = BmpCreate( (Int16)shape->bitmapWidth,
(Int16)shape->bitmapHeight,
4,
&shape->colorTable,
&error );
BitmapTypeV3 *bitmapV3 = BmpCreateBitmapV3( bitmap, kDensityDouble,
shape->bitmapBits,
&shape->colorTable );
WinDrawBitmap( (BitmapType*)bitmapV3, 0, 0 );
BmpDelete( (BitmapType*)bitmapV3 );
BmpDelete( bitmap );
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/