Adian, >> What am I missing? > >Please, take a look at here:
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. It all works fine when the bitmap is not compressed. When it is compressed, I figured it easier to try to use BmpCompress() to uncompress it rather than decode the compression myself. I was anticipating that BmpCompress() would run on non-color devices (of at least OS 3.5) even though I wouldn't expect to be able to make windows with higher bit depth than the device supports. How can I use WinCopyRectangle() if I can't get a color depth capable window on non-color devices? Or can you? Will WinCreateBitmapWindow() allow that? It just seemed like uncompressing the bitmap and then reading the pixels I want was the most efficient manner of achieving the desired end, but I can't get BmpCompress() to accept the arguments even though I seem to meet the criteria specified in the API docs. Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
