Doug, > Actually, I probably should have mentioned I had already tried that, allocating > even more than would be needed for the uncompressed size. I also tried what > should be the exact size of the uncompressed bitmap.
I probably should have also mentioned that in NSBasic it worked for me... ?!?!? :( http://groups.yahoo.com/group/nsbasic-palm/message/12408 (September, 2001) Remark: You need to uncompress before dealing with transparency... > Note that the error I get is for an invalid parameter; not a rejection for lack > of memory (another documented potential error). You are right... The only differences between my code and yours is this: ---- BitmapType* pBmp2; My pBmpr2 was declared as a Variant (no special structure). In C it would be a void*. (it could be related to sysErrParamErr error). ---- size = 64000 'just to fit in a resource. Not your need. ---- 'MemPtrNew ---- MemPtrNew = SysTrapFunc(19,1,size) I hard coded "size". (avoid sysErrNoFreeResource error :) 'My first guess... And my BmpCompress, in NSBasic, used a hard coded BitmapCompressionType. (you don't need it in C compilers... ) ---- compressType = 255 * 256 'May be 0, 1, 2 or 255 'by that time..... 2001 ---- '0 - Scan line compression - PalmOS 2.0 and higher ---- '1 - RLE compression - PalmOS 3.5 and higher ---- '2 - Packbits compression - PalmOS 4.0 only ---- '255 - No compression - uncompress bitmap 'BmpCompress Err = SysTrapFunc(991,2,MemPtrNew,compressType) But, just taking another look at my own documented code <g>, I see that Version 2 encoding is supported in Palm OS 3.5 and later, but only if High-Density Display Feature Set is present. So, it seems that we should have both features in our devices (early Handspring, probably, or a PalmOS 4.0 compatible device). Would be this your problem?. HTH, Adrian Nicolaiev http//www.niconnect.com PS.: Sorry for delay in answering... I was sleeping here in Brazil :) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
