Jeudi  8 Mars 2001 20:24, Michael S. Davis a �crit:

> I use prc-tools  and use the  BITMAPFAMILIES but use only two colors in
> the other non-color bitmaps.
>
> 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?

Taken from PalmOS Reference documentation, about WinPaintBitmap function :

"If the bitmap has multiple depths (is a bitmap family), the closest match 
less than or equal to the current draw window depth is used. If such a bitmap 
does not exist, the bitmap with the closest match greater than the draw 
window depth is used."

> I don't have a grayscale palm to test this on.  I tried this once but even
> the emulator was not showing grayscale.  What is the best debug ROM for
> testing grayscale functionality?

You can aso test grayscale mode ( assumed you have at least Palm OS 3.5 ) on 
a color device, by using WinScreenMode to specify the depth you want.

-- 
Daniel Morais

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