PDA

View Full Version : 4 level grey Bitmaps


anita
05-07-2002, 03:19 PM
I have yet to find a way of saving 2bit bitmaps. Since the LG VX-10 does support 4 level grey, I'd like to know how I can get my bitmaps in 2bit format. Does using 4bit graphics with a four color palette work? Are there other graphics tool (maybe ones that are non-windows) that will save in 2bit? I don't know have a device to test this on, so any help is appreciated.

Thanks in advace,
Anita

devi
05-07-2002, 05:42 PM
You can use 4-bit bitmaps to represent the 4 level grey images. They will be down-converted to 2-bit bitmaps by the CONVERTBMP function.

BREW SDK 2.0 will include the 2 Bit Tool, which will allow you to convert 4-bit BMPs to 2-bit BMPs and vice versa for image editing purposes.

Devi Krishnan
BREW Support

anita
05-08-2002, 10:59 AM
Which two greys does the LG VX-10 use? I'd like to make sure that the greys I use map to the correct level on the device. Will using the same greys as the example bitmaps provided in the SDK work ( (128, 128, 128) and (192, 192, 192) )?

devi
05-08-2002, 11:51 AM
Yes, (128, 128, 128) and (192, 192, 192) which correspond to dark and light gray included in the basic color palette in MS Paint.

Devi Krishnan
BREW Support

anita
05-08-2002, 02:20 PM
How about the images for the MIF? Does the app manager call CONVERTBMP() on these graphic? Can I include 4bit bitmaps in my MIF for a device that supports 4 level grey?

devi
05-08-2002, 04:09 PM
Images in the MIF file will be down-converted if needed - you can use a 4-bit bitmap in the MIF file for devices that support 4 level grey.

Devi Krishnan
BREW Support