the palm API docs say:

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.

(currently testing on the OS 5 Sony Simulator)

ex.
BitmapTypeV3* bitmapV3P = BmpCreateBitmapV3(bitmapFromJpeg, kDensityDouble, BmpGetBits(bitmapFromJpeg), NULL);
RGBColorType rgb;
rgb.r = 255; rgb.g=250; rgb.b = 255;
BmpSetTransparentValue ((BitmapType*)bitmapV3P, WinRGBToIndex(&rgb)); WinDrawBitmap((BitmapType*)bitmapV3P, x, y);
BmpDelete((BitmapType*)bitmapV3P);


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

Reply via email to