is your bitmap compressed? you may not pass a compressed bitmap to
BmpCreateBitmapV3.
if it is compressed, you can try BmpCompress(bitmapP,
BitmapCompressionTypeNone) prior to creating the v3 bitmap.

markus dresch (www.palmside.com)

> MemHandle h = DmGetResource(bitmapRsc, BmpId);
> BitmapPtr bitmapP = (BitmapPtr)MemHandleLock(h);
>
> BitmapTypeV3 *bmpV3P = BmpCreateBitmapV3(bitmapP, kDensityDouble,
> BmpGetBits(bitmapP), NULL);
>
> WinDrawBitmap((BitmapPtr)bmpV3P, (x + shift)/2, y/2);
>
> And the simulator crashes!



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

Reply via email to