Gamma correction with IE5.5

Batik is using a Gamma correction of 2.2.
When I render an image to PNG with this correction, I receive
the right color (if you open the image with Photoshop, for
example), but when displaying the image in IE5.5, the image
has darker colors. After a while, I understood that IE5.5
is using another Gamma correction. After some experiments I found out
that it is approximately : 1.942F.

I couldnt found a way to set the gamma when I made a new
PNGTranscoder, so I had to replace it manualy in the program.
Only in this way I could make the right correction:

// We are using sRGB (gamma 2.2).
//params.setSRGBIntent(PNGEncodeParam.INTENT_PERCEPTUAL);
params.setGamma(1.0F/1.942F);
(This a part of PNGTranscoder.java)

Any suggestions?

Philip

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to