current transform being applied by canvas

Posted by Allain Lalonde on Stack Overflow See other posts from Stack Overflow or by Allain Lalonde
Published on 2009-12-28T00:40:42Z Indexed on 2010/03/17 14:31 UTC
Read the original article Hit count: 248

Filed under:
|
|

How can I determine the current transform that's being applied by an html5 canvas.

It seems that it only supports two methods for dealing with transforms "transform", "setTransform" but I can't seem to discover the results of applying the transforms.

Short of tracking them all myself and duplicating the the matrix mathematics that it must be doing natively, how can I figure out the current transform?

© Stack Overflow or respective owner

Related posts about html5

Related posts about canvas