W3C home > Mailing lists > Public > www-svg@w3.org > November 2002

currentTranslate and currentTranslate (again)

From: Sigurd Lerstad <sigler@bredband.no>
Date: Wed, 27 Nov 2002 14:40:55 +0100
Message-ID: <000d01c2961a$9c22aef0$541273d5@mmstudio>
To: <www-svg@w3.org>


I'm asking this question again, since no-one answered the previous one. If
my question is unclear, please say so... thanks again.

I know it's in the specs, but I just want it clarified (since the specs
describe it in a matrix way, and I'm not always comfortable with that).

My question is if the currentTranslate should be performed after or before
the currentScale, that is:

should the image be scaled, and then translated
should the image be translated, and then scaled (the scaling would also
affect the translation)

Another way to put it:

pixelTranslate = translate


pixelTranslate = translate * scale

A third way, just to make my question super-clear :)

If you have an svg image that is (100,100) and currentTranslate(10,10) and

should the topleft visible portion of the image be at (10,10) or (10*2,


Sigurd Lerstad
Received on Tuesday, 26 November 2002 18:40:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:54 UTC