>1) which model support grayscale? Depths?
You find out at runtime by calling WinScreenMode or ScrDisplayMode.
Currently the answer is that all hardware devices so far do at least 2-bit,
but not all OS versions do.
>2) which OS support WinScreenMode() and ScrDisplayMode()?
They are the same function, just renamed. If you use the 3.5 or later SDK,
use WinScreenMode on any OS 3.0 or higher. If 3.0 or higher SDK but less
than 3.5, use ScrDisplayMode, again, on any OS 3.0 or higher. This is
explained in the docs, except that the prerelease 4.0 one I'm looking at
doesn't clarify that ScrDisplayMode was added in 3.0 so if you're on 2.0 or
1.0 all it supports is black and white and these functions don't exist.
>3) what is the test one should make before switching to 4 bit?
If WinScreenMode says it is OK.
>4) must the application switch back to 1 bit at exit?
No need to bother. The system will return itself to its default depth
whenever any app quits.
>5) is there an article somewhere that details using grayscale?
Well, there's the documentation... there's also the ColorDeal sample, but
since the KB server machine is down you can't exactly get at it just now.
There's another article in the KB about hacking grayscale on systems which
don't quite fully support it. Might be others elsewhere.
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/