Thomas - thank you.

If I do this:
    t.addTranscodingHint(ImageTranscoder.KEY_WIDTH, new Float(1181.0f) );
    t.addTranscodingHint(ImageTranscoder.KEY_HEIGHT, new Float(826.0f) );

Then my resultant PNG has those dimensions.

However another slight problem is that the dpi in the PNG is 299. I guess
there is some rounding in the maths when the PNGTranscoder renders the PNG.
So I could manually set PNG to 300dpi but any way to force the PNGTranscoder
to insert a certain value for the dpi?



-- 
View this message in context: 
http://www.nabble.com/PNG-pixel-dimensions-of-given-dpi-don%27t-correspond-to-original-SVG-mm-dimensions-tp17212289p17228106.html
Sent from the Batik - Users mailing list archive at Nabble.com.


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

Reply via email to