Hi,
I am trying to create a high-resolution checkerboard in an offscreen
window in OS 5. Unfortunately, it creates a checkerboard but each
square in the chekerboard is 2x2 pixels. Any idea on how to get the
finer chekerboard? I am getting the higher resolution fonts though.
Here are some code fragments:
static const CustomPatternType pattern =
{0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55};
hOffscreen =
WinCreateOffscreenWindow(barWidth, barHeight, nativeFormat,
&err);
hScreen = WinSetDrawWindow(hOffscreen);
WinEraseRectangle(&rectFull, 0); // rect full is set to size of window
rectFull.extent.x /= 2; // just an example
WinSetPattern(&pattern);
WinFillRectangle(&rectFull, 0); // not high density
Thanks,
Mike McCollister
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/