I posted about this same problem a while back. It looks to me like there is a bug in BmpCreateV3 causing it to not copy the color table correctly. One workaround is to ignore BmpCreateV3 and create your bitmap manually, as demonstrated in the BitmapRsrcDR1 sample code.
-Justin Clark Copera, Inc. [EMAIL PROTECTED] On Wed, Jul 07, 2004 at 04:44:02PM +0200, Chris Apers wrote: > Hi, > > I'm trying to convert a simple 8bit or 16bit bitmap to a V3 Double Density. > but when i draw the new V3 bitmap it shows me a broken image. > > here is the definition used in my PilRC file : > > BITMAPCOLOR ID skinButtonGameAddNormal "pics/skinButtonGameAddNormal.bmp" > COMPRESS > > > and the code : > > BitmapTypeV3 *bmp2P; > bmp2P = BmpCreateBitmapV3(bmpTemp, kDensityDouble, > BmpGetBits(bmpTemp), NULL); > > WinDrawBitmap((BitmapPtr)bmp2P, 0, 0); > BmpDelete((BitmapPtr)bmp2P); > > Any idea ? > Thanks > Chris > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see > http://www.palmos.com/dev/support/forums/ -- -Justin Clark Copera, Inc. [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
