> > From: Michael S. Davis
> >
> > NOW, I want to create a grayscale image for the 2 bit and 4 bit
> > images. Is it possible to change the 2 bit and 4 bit images to use
> > grayscale and NOT require any new code AND have the grayscale image
> > show up on grayscale devices and the b/w image on 1 bit devices?
> >
>
> The whole purpose of a Bitmap Family is to let you create 1 to 4
> pictures (1-bit, 2-bit, 4-bit, 8-bit) at design time and the OS will
> pick which one to use based on the current bitmap depth of the device
> your app runs on. You don't have to write any code to make this
> happen. However, I think all of the B&W devices default to 1 bit even
> though some of them can display grayscale, and the color devices
> default to 8 bits. To change the display depth at run-time, you have
> to add a little code to your app. See WinScreenMode() or
> ScrDisplayMode().
Ok, if all default to 1 bit, does that mean that there is something
in the device preferences or somewhere that the owner of the device
can change that and the grayscale image will be displayed, WITHOUT me
adding any code? How, where does the user do that? Or, is this a
case where the device has the capability to display grayscale but it
can only be used, IF code is added?
I'd rather do this without code, if at all possible. But if it is
NOT possible to add grayscale without code then...
1) which model support grayscale? Depths?
2) which OS support WinScreenMode() and ScrDisplayMode()?
3) what is the test one should make before switching to 4 bit?
4) must the application switch back to 1 bit at exit?
5) is there an article somewhere that details using grayscale?
Thanks for the help on this?
Mike
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/