From batik-users-return-9062-apmail-xmlgraphics-batik-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Wed Dec 28 13:53:46 2005 Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 68351 invoked from network); 28 Dec 2005 13:53:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Dec 2005 13:53:46 -0000 Received: (qmail 78916 invoked by uid 500); 28 Dec 2005 13:53:44 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 78901 invoked by uid 500); 28 Dec 2005 13:53:44 -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 78890 invoked by uid 99); 28 Dec 2005 13:53:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2005 05:53:44 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aasantos@gmail.com designates 64.233.162.201 as permitted sender) Received: from [64.233.162.201] (HELO zproxy.gmail.com) (64.233.162.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2005 05:53:43 -0800 Received: by zproxy.gmail.com with SMTP id l8so810175nzf for ; Wed, 28 Dec 2005 05:53:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dhXOojLbW8FYhx46jL335IeO8xLE4R/q677exnDutRTDGw1X4D6br0nzItvcsgXDAi4s1jt03ruXk5xbakvDxwI0elTm2jRO8jkh48quRWV2efwg7YG1VKHcgmPifHudQC1ue7NIZ46Z+cacCy1Tg/nd1XKXpJRqDdq0UlBGTwg= Received: by 10.64.251.5 with SMTP id y5mr2281837qbh; Wed, 28 Dec 2005 05:53:23 -0800 (PST) Received: by 10.64.181.7 with HTTP; Wed, 28 Dec 2005 05:53:23 -0800 (PST) Message-ID: <7ef2fd890512280553g2cb4d3adkde0590cee1c2a92b@mail.gmail.com> Date: Wed, 28 Dec 2005 10:53:23 -0300 From: =?ISO-8859-1?Q?Andr=E9_Santos?= To: batik-users@xmlgraphics.apache.org Subject: Printing visible area after transform MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, I'm trying to print the canvas after a transformation. Say, I have an SVG first loaded into JSVGCanvas. When I print it everything works fine. The problem is, I then zoom to a specific part of the image. The printed area is, however, bigger than the part I'm vieweing on screen (although the scaling works fine). I'm using the getViewBoxTransform() to get the visible area, but for some reason it is not working properly. Any ideas? I've been using Batik for only a few days, so I'm still not familiar with most of its concepts. I'm particularly lost at the viewport/viewbox/screen coordinates required transformations. I would be most grateful if anyone could clarify this point to me. BTW, I'm using Batik SVN (05-12-19), JDK 1.4.2_08, Win2k SP4. Regards, Andr=E9 --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org