Page 1 of 1

PostPosted: Thu May 04, 2006 1:39 pm
by gatesjk
I just noticed with OrbForms 4 they have a few new methods for the draw object : drawm() and bitmapm(). I had no idea what these modes meant or what they were used for. Valid modes are: modePaint, modeErase, modeMask, modeInvert, modeOverlay, modePaintInverse, modeSwap. Just substitute "win" for "mode"

I found the information in the Palm OS Reference

<b>winPaint</b> Write color-matched source pixels to the
destination. If a bitmap?¢‚Ǩ‚Ñ¢s
hasTransparency flag is set, winPaint
behaves like winOverlay instead.

<b>winErase</b> Write backColor if the source pixel is
transparent.

<b>winMask</b> Write backColor if the source pixel is not
transparent.

<b>winInvert</b> Bitwise XOR the color-matched source pixel
onto the destination. This mode does not
honor the transparent color in any way.

<b>winOverlay</b> Write color-matched source pixel to the
destination if the source pixel is not
transparent. Transparent pixels are skipped.
For a 1-bit display, the ?¢‚Ǩ?ìoff?¢‚Ǩ