"Mike McCollister" <[EMAIL PROTECTED]> wrote in message
news:51564@palm-dev-forum...
>
> Hi,
>
> Does anyone know how to make every other pixel white
> on a bitmap (checkerboard patter) so that it appears
> to be grayed out?

Draw your bitmap, use WinSetPattern and WinFillRectangle to draw a grey
rectangle offscreen, then use WinCopyRectangle in winErase mode to
screen out every other pixel.  To get alternating pixels, use a custom
pattern defined like

CustomPatternType greyPattern = { 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA,
0x55, 0xAA };

There are other ways to do this, but its not easily done on pre-3.5
devices.







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

Reply via email to