Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 57884 invoked from network); 10 May 2006 12:19:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 12:19:41 -0000 Received: (qmail 83571 invoked by uid 500); 10 May 2006 12:19:40 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 83563 invoked by uid 500); 10 May 2006 12:19:40 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 83552 invoked by uid 99); 10 May 2006 12:19:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 05:19:40 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of thomas.deweese@kodak.com designates 192.232.121.200 as permitted sender) Received: from [192.232.121.200] (HELO smtp1.kodak.com) (192.232.121.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 05:19:39 -0700 Received: from roc-us-e1000-109.kodak.com (roc-us-e1000-109.kodak.com [192.232.121.189]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id k4ACJHR23192 for ; Wed, 10 May 2006 08:19:17 -0400 (EDT) Received: from (150.221.122.53) by roc-us-e1000-109.kodak.com via smtp id 296f_336b9586_e01f_11da_966b_0002b3e8d59a; Wed, 10 May 2006 08:19:16 -0400 In-Reply-To: <4318132.post@talk.nabble.com> To: batik-users@xmlgraphics.apache.org Cc: batik-users@xmlgraphics.apache.org Subject: Re: Export jpeg/tif/png saves only visible area of the image MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: thomas.deweese@kodak.com Date: Wed, 10 May 2006 08:19:13 -0400 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.4FP1|June 19, 2005) at 05/10/2006 08:19:17 AM, Serialize complete at 05/10/2006 08:19:17 AM Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Sudhakar, Please read: http://xmlgraphics.apache.org/batik/rasterizerTutorial.html Sudhakar S wrote on 05/10/2006 08:09:43 AM: > > 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: batik-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org