--- Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > 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..
That is apparently the case. I created a new bitmap using BmpCreate and WinCreateBitmapWindow I was able to draw the compressed bitmap to the new bitmap-window. > then, do a MemMove(pBitmap, BmpGetBits(), BmpBitsSize(pBitmap)); > or, something alone those lines.. brain fried.. need coffee.. :) Fortunately, I did not need to do the above. Mike __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
