Hi. I'm updating the netpbm software to produce and consume PalmOS 4 bitmaps, and the way in which transparent colors are specified for 16-bit DirectColor bitmaps is somewhat ambiguous. Consider the case where "red" (#FF0000) is the transparent color. Since we are using 16-bit DirectColor, we have only 5 bits of red, or 0x1F, plus 6 bits of green (0x00) and 5 bits of blue (0x00). That gives us a direct color of 0xF800. Great! The question is what the elements of the "transparentColor" field in the BitmapDirectInfoType structure should be. Should "r" be 0x1F (since we're only using 5 bits of red), or 0xFF? The spec seems to say 0xFF, but is ambiguous. Bill -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
