> hBitmap = DmGetResource(bitmapRsc, bitmapID);
> pBitmap = MemhandleLock(hBitmap);
> 
> puts the bitmap in the storage heap instead of dynamic where BmpCompress 
> wants it to be? Or it could be that PilRC 2.9p9 does not compress the 
> bitmap properly :).

  most likely :) DmGetResource() doesn't copy anything. it grabs a 
  memhandle reference to the storage heap :) i guess, if you want to
  do something, allocate a BitmapType structure..

  then, do a MemMove(pBitmap, BmpGetBits(), BmpBitsSize(pBitmap));
  or, something alone those lines.. brain fried.. need coffee.. :)

---
Aaron Ardiri                            [EMAIL PROTECTED]
CEO - CTO                                               +46 70 656 1143
Mobile Wizardry                          http://www.mobilewizardry.com/


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

Reply via email to