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

currentTranslate and currentScale

From: Sigurd Lerstad <sigler@bredband.no>
Date: Sat, 23 Nov 2002 07:04:34 +0100
Message-ID: <00dd01c292b6$32434dd0$541273d5@mmstudio>
To: <www-svg@w3.org>


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 Friday, 22 November 2002 11:04:16 UTC

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