Sunil Puri wrote:
t.addTranscodingHint(PNGTranscoder.KEY_BACKGROUND_COLOR, Color.white);
t.addTranscodingHint(PNGTranscoder.KEY_FORCE_TRANSPARENT_WHITE,
Boolean.TRUE);
I have tried using these two statements to make a Transparent PNG image
from SVG, but it doesn't seem to work even if you change the values from
TRUE to FALSE or use some other color.
I will appreciate if anyone could help me to produce Transparent image.
The Default behavior is to produce a transparent image. If you aren't
seeing this, check if the SVG content draws something that fills the whole
viewport.
By specifying a background color you are telling it to make the background
opaque white. The transparent white hint indicates that it should use a
'hack' to make the background 'white' for viewers that don't support transparency,
but still preserve transparency for viewers that do (at the cost of some
'whitening' of semi-transparent parts).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]