Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 92282 invoked from network); 10 May 2006 10:03:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 10:03:24 -0000 Received: (qmail 93273 invoked by uid 500); 10 May 2006 10:03:03 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 93036 invoked by uid 500); 10 May 2006 10:03:02 -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 93025 invoked by uid 99); 10 May 2006 10:03:01 -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 03:03:01 -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 03:03:01 -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 k4AA2eR06379 for ; Wed, 10 May 2006 06:02:40 -0400 (EDT) Received: from (150.221.122.53) by roc-us-e1000-109.kodak.com via smtp id 1979_1dbd05de_e00c_11da_959b_0002b3e8d59a; Wed, 10 May 2006 06:02:39 -0400 In-Reply-To: <4313399.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 06:02:38 -0400 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.4FP1|June 19, 2005) at 05/10/2006 06:02:40 AM, Serialize complete at 05/10/2006 06:02:40 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, Sudhakar S wrote on 05/10/2006 12:56:02 AM: > After zoomed the SVG document to larger size, if i tried to export it to > jpeg/tif/png, it saves the area which is available in visible rectangle. > Because the getOffScreen returns only the visible portion of the image. So > is it possible to save entire document beyond the visible rectangle too with > scaled size?? It is possible but requires a bit more work. You will either need to clone the current document and give the clone to the Transcoder with an appropriate width/height (you can calculate the size based on the renderingTransform and the size of the document). The other alternative would be to construct a BufferedImage of the proper size (same as above) and pass the Graphics2D from that Image to the 'paint' method of the root of the GVT tree, you will need to set the transform on the Graphics based on the rendering transform of the Canvas. --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org