Draw modes Information

Discuss topics that apply across the products, such as the PocketC language, or development in general

Postby gatesjk on Thu May 04, 2006 1:39 pm

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

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

<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?¢‚Ǩ
Posts: 4
Joined: Wed Apr 05, 2006 10:28 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest