At 17:05 2003-2-17 -0500, you wrote:
the palm API docs say:RGBColorType color;
void BmpSetTransparentValue (BitmapType *bitmapP,
UInt32 transparentValue)
transparentValue
Transparent color. This should either be a palette index or a direct color value (an RGBColorType), depending on the bitmap's depth.
So...how do you pass an RGBColorType to this function? I tried using WinRGBToIndex but it didn't work.
color.red = 0x0;
color.blue = 0;
color.green = 0;
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 Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
