Try taking out the BmpGetBits call, that's only like if the bits are stored
somewhere else like the storage heap for the bitmap.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris Apers
Sent: Wednesday, July 07, 2004 8:44 AM
To: Palm Developer Forum
Subject: BitmapV3 convertion problem


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/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to