>What is the simplest and most memory efficient way of drawing 2-bit
>(4-color) text, but having the 4 colors be black, grey, white, and _red_
>on a color device? I want to create an offscreen window, draw to it in
>black/white/red, then copy it to a window that is part of an active
>onscreen form.

So long as you're talking about using Palm OS 3.5 APIs and drawing text of
a single color, whether that be black or red or whatever, it is easy.
(There isn't support for multi-color fonts, but any font can draw in any
color.)

Just call WinSetTextColor, giving the index in the palette of black or red
or whatever, and then WinDrawChars.

You can take a look at how the ColorDeal sample does it... see the sample
code area on http://www.palm.com/devzone/  (using the scrolling list on the
left is the fastest way to get there.)

-David Fedor
Palm Developer Support



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to