xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhakar S <yessudha...@hotmail.com>
Subject Re: Export jpeg/tif/png saves only visible area of the image
Date Wed, 10 May 2006 12:09:43 GMT

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

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;

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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message