Login Register

matrix

Transform shape by matrix

Hello everybody,

i´m trying to convert some SVG-Files to dojox.gfx compatible shapes. Some SVG-Tags contain transform-Attributes, like rotate(), matrix and so on...
for example something like that: <polygon ... transform="matrix(1,2,3,4,5,6)"></polygon>

Now i´m trying to port this matrix(...) which transforms the polygon to a dojox.gfx surface to transform a shape (like a rectangle or something else).
Up to now i tried a lot of things, but something worked :-(
Here a some excerpts of my attempts to solve the problem:
shape.setTransform({1,2,3,4,5,6});

Syndicate content