xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject RE: How to get correct X and Y co-ordinates
Date Wed, 09 Oct 2002 11:36:03 GMT
>>>>> "AS" == Arvind Sareen <arvind_sareen@hotmail.com> writes:

AS> Hi Thanks for the suggestion . Can you provide me with the link
AS> for Yahoo SVG group and if possible any example which could give
AS> me direction towards getting x and y co-ordinates.


   Ask for examples their as they will know what works and what
doesn't in the Adobe implementation.

AS>  What does getCTM method do.

     See the SVG specification: http://www.w3.org/TR/SVG/

>> 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

View raw message