Finally doing some graphics in 16-bit color, and I'm curious about direct color. I'm supposed to pass a direct color RGB565 value to BmpSetTransparentValue(), where that transparent value is defined (according to the manual) as UInt32.

First of all, shouldn't that passed value be only 16 bits? What's up with 32? And secondly (most importantly), what's the best/simplest way to finesse the needed red/green/blue values into the 565 form in C code? I'm probably being dense here, but this is momentarily confusing. It seems like most convenient API functions deal with RGBColorType values, rather than the 565 value directly...then this one threw me.

Thanks,
zane


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

Reply via email to