xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arvind Sareen" <arvind_sar...@hotmail.com>
Subject RE: How to get correct X and Y co-ordinates
Date Wed, 09 Oct 2002 06:38:54 GMT

Thanks for the suggestion . Can you provide me with the link for Yahoo SVG 
group and if possible any example which could give me direction towards 
getting x and y co-ordinates. What does getCTM method do.



>From: Thomas E Deweese <thomas.deweese@kodak.com>
>Reply-To: "Batik Users" <batik-users@xml.apache.org>
>To: Batik Users <batik-users@xml.apache.org>
>Subject: RE: How to get correct X and Y co-ordinates
>Date: Mon, 7 Oct 2002 08:46:47 -0400
> >>>>> "AS" == Arvind Sareen <arvind_sareen@hotmail.com> writes:
>AS> I have written code which returns me the actual x and y value of
>AS> the line plotted and not the windows x and y co-ordinates but i
>AS> always get the same value even when x and y co-ordinates of
>AS> windows change.  Attached is the code.
>     This code seems to be designed to work with the Adobe Viewer (it
>uses SVG DOM methods we don't implement yet - getTotalLength,
>getPointAtLength, etc).  You may find that the Yahoo SVG Group is more
>useful for Adobe related questions.
>     However the general question of converting userspace to device
>space coordinates should be a simple matter of applying the results of
>getCTM to the points, however I understand there is a bug in the
>implementation of this method in the Adobe Viewer.  You might also
>look at currentScale/currentTranslate attributes on the outermost SVG
>element (which contain the viewing transform).
>AS> Can anybody provide me with the solution or workaround to the
>AS> above problem.
>     I hope this helps at least a little.
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org

Chat with friends online, try MSN Messenger: http://messenger.msn.com

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message