Hi Thomas,
I have tried to clone the document and calculated the size using
renderingTransform also i have passed the cloned document to transcode
method. But after this i dont know how to proceed and how to write image. So
can you please give some more information to create scaled jpeg/tif/png
images.
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
final Document d =
DOMUtilities.deepCloneDocument(svgCanvas.getSVGDocument(), impl);
AffineTransform att = svgCanvas.getRenderingTransform();
Rectangle canvasRect = svgCanvas.getBounds();
AffineTransform itrans = att.createInverse();
Rectangle rect = itrans.createTransformedShape(canvasRect).getBounds();
double w = rect.getWidth() * docWidth;
double h = rect.getHeight() * docHeight;
Thanks,
Sudhakar
--
View this message in context:
http://www.nabble.com/Export-jpeg-tif-png-saves-only-visible-area-of-the-image-t1589363.html#a4318132
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]