uncompressing bitmaps (again)

2003-09-29 Thread Adrian Pfisterer
Hello all... I'm (again) experiencing troubles uncompressing bitmaps. My app is opening bitmaps that have been created on another device. It gets them in a database. They can be compressed in multiple formats (i.e. scanline, RLE, packbits). On a 3.5 ROM with an RLE compressed bitmap it works

uncompressing bitmaps

2003-08-27 Thread Adrian Pfisterer
of the header is changed to BitmapCompressionTypeNone, the bitmap data remains that same. I've had other problems uncompressing bitmaps, like BmpBitsSize returning different values depending on the PalmOS version of the device it is running on. This process seems like it should either be easier or better

Re: uncompressing bitmaps

2003-08-27 Thread James
Adrian Pfisterer wrote: I'm having some problems uncompressing a bitmap. This particular bitmap comes from a resource and is scanline compressed. I understand that I can't uncompress a bitmap that that isn't in the dynamic heap so what I do is create an empty bitmap that is big enough to

Re: uncompressing bitmaps

2003-08-27 Thread James
Adrian Pfisterer wrote: pUncomprBitmap = BmpCreate( width, height, pixelSize, clrTblP, createErr ); if( pUncomprBitmap createErr == 0 ) { UInt16 bitsSize; // copy the compressed bits in and uncompress it

Re: uncompressing bitmaps

2003-08-26 Thread Steve Mann
what I do is create an empty bitmap that is big enough to uncompress into, copy the data in, and then call BmpCompress with BitmapCompressionTypeNone. Nothing jumps out after a quick read. I use similar code and it works for me. Sorry that doesn't help much. Regards, Steve Mann -- For

Uncompressing Bitmaps...

2000-08-14 Thread Jason Davidson
I am trying to uncompress a Bitmap using the BmpCompress function. I am using CW R6 With 3.5 SDK. The problem I am having is the BMPCompress function is returning sysErrNoFreeResource I don't know what would cause this error. The function works fine on Bitmaps that are the size of the screen