There is not an API solution in 3.x (I don't know about 3.5, yet).  Any attempt to use 
a non-API solution tempts the wrath of the FedorMeister.  Enter at your own risk, your 
mileage may vary, this may not work with newer systems, etc...
Ed Keyes (Mr. Hackmaster) wrote about this in his Handheld Systems article of Nov/Dec 
96.  Unfortunately they're not available on the net anymore.  If you can find anyone 
with a copy it would be a good thing.
Having said that, this is a bastardized excerpt of Ed's article and the Dragonball 
docs - I give no guarantees as to its correctness:
The Dragonball grayscale palette is controlled by the LGPMR (LCD Gray
Palette Mapping Register).  The bits of the LGPMR are laid out as follows
(b = black, w = white, lg = light gray, dg = dark gray):

16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1
|-- lg ---| |--- w ---| |--- b ---| |-- dg ---| 

The Dragonball 7 shades are as follows

0=0/16, 1=4/16, 2=5/16, 3=8/16, 4/16, 5/16, 6/16, and 7/16.

There are two active bit values for solid black; either will work.


The Dragonball EZ grayscale palette is controlled by the LGPMR (LCD Gray
Palette Mapping Register).  Black and White are fixed on the EZ and cannot
be altered via the LGPMR.  The bits of the LGPMR are laid out as follows
(b = black, w = white, lg = light gray, dg = dark gray):

16 15 14 13 12 11 10  9  8  7  6  5  4  3  2  1
|- fixed -| |- fixed -| |-- dg ---| |--- lg --| 

For the Dragonball EZ the palette of 16 is as follows, in terms of
darkness density:

0  =  0/16,  1 = 1/8,  2 =  3/16,  3 = 1/4,
4  =  5/16,  5 = 3/8,  6 =  7/16,  7 = 2/4,
8  =  9/16,  9 = 5/8, 10 = 11/16, 11 = 3/4,
12 = 13/16, 13 = 7/8, 14 = 15/16, 15 = 4/4



I believe you'll find the LGPMR at 0xFFFFFA32.  You also have to work on the settings 
for each combination of device and OS.  PalmOS 3.3 doesn't seem to have this problem 
if you're on an EZ chip.
Hope that helps,

trib
--------------------------------------------------
David Tribble, INRI Hawaii
(808) 625 2118 (v)  (808) 625 6315 (f)

-----Original Message-----
From:   Alagesh [SMTP:[EMAIL PROTECTED]]
Does any one know how to set different intensity for an image on palm. I don't need an 
App. that is used to view an image. All I need is how to set different intensity in my 
own Application.


Reply via email to