Doug,

> which suggests:
>
> "Set up an uncompressed offscreen bitmap, then use WinCopyRectangle to
> decompress the first bitmap into the second."

> The reason I don't want to do that is because what I'm trying to do is
access
> the color indexes of various pixels in a bitmap resource, even when
running on a
> non-color device.  So I compute the location of the bit(s) in the bit data
> portion and read them directly.

In this case, as Ben Combee's suggestion (posted in that link) doesn't help
you, maybe mine :)

Here is my suggestion (and, as you said: "I think I'm missing the forest for
the trees here; this should be so obvious...")
And it is so obvious...
Just allocate a bigger memory for your new bitmap :)

size = "Bigger than BmpSize( pBmp )";
pBmp2 = MemPtrNew( size );
MemMove( (void*) pBmp2, (void*) pBmp, size );
err = BmpCompress( pBmp2, BitmapCompressionTypeNone );

HTH,

Adrian Nicolaiev
http://www.niconnect.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