I produced two svg images: i400x350.svg and i1200x600.svg.

Do you have an idea, why this use of transcoder
works fine as long as any dimension of the svg image is not more than 400 pixels?

TranscoderInput tin = new TranscoderInput(new File("i400x350.svg").toURL().toString());
OutputStream pout = new FileOutputStream(new File("i400x350.png"));
PNGTranscoder p = new PNGTranscoder();
TranscoderOutput ptout = new TranscoderOutput(pout);
p.transcode(tin, ptout); pout.flush(); pout.close();


I tried several things, playing around with KEY_WIDHT or KEY_AOI
but can't figure out transcoder always
takes the upper left 400 by 400 square out of the svg image.

If you like to have look at the svgs and pngs I'll mail it to you if the upload does not work.

Rolf

I'm using batik-1.5beta4b on WinXP.

Attachment: only400.zip
Description: Zip compressed data

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


Reply via email to