I believe the problem is that BmpCreateBitmapV3 does not copy color tables correctly. You can work around it by creating your V3 bitmap manually instead of calling BmpCreateBitmapV3.
-Justin Clark Copera, Inc. [EMAIL PROTECTED] On Wed, Sep 08, 2004 at 06:14:57PM -0700, Jim McGowen wrote: > 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/ -- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
