Re: Web safe colours only?




"Kev" <griffin.kev@xxxxxxxxx> wrote in message news:1159435611.583809.310320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I have written an application to produce images
from text read out of a database.

However the background colour I wish to use is
0xD8F1FF, when the image is produced the colour
doesnt match the backgound the image is placed on
(which is also 0xD8F1FF)

I have render quality etc set on quality
and my JPEGEncodeParam setQuality param set to 1.0

I have tried using the ImageIO api to the same result,
is there any limitation on Java when producing images
to use websafe colours only?

Any ideas welcomed :)

As Andrew suggested, take a screencapture, and load the capture in an image program so you can analyze the actual colours of the pixel produced, and determine whether it's the Java produced image which is the wrong colour, or the HTML browser which is producing the wrong colour.

- Oliver

.