> > 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.

  the solution you specified will work on pre-3.5 systems :)

  it however, is probably better to pre-render the image and store
  the "greyed" image seperately and then draw over the current bitmap
  when you want it greyed out :)

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


-- 
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