At 17:56 2003-2-17 -0500, you wrote:
So...how do you pass an RGBColorType to this function? I tried using WinRGBToIndex but it didn't work.
RGBColorType color;
...
BmpSetTransparentValue(bitmapP, *(UInt32 *)&color);
You basically have to treat the whole structure as if it were a 32-bit value, as best I can tell.
Ben,

I tried that with both a v2 and v3 bitmap, but no dice. The simulator gives me the error "HighDensityDisplayMgr.c, Line 469, BmrSetTransparentValue: invalid transparent color". I click ignore and the bitmap draws, but does not have the color transparent.

(It seems to work if I make black the transparent color and set all the fields to 0, but not for any other color).
Grrr... OK, I don't have any other thoughts. This seemed like it would work. Any one from PalmSource wish to clarify?

--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


Reply via email to