add transform matrix to render method, reset image width and height

This commit is contained in:
Will McNeilly 2012-08-21 17:19:55 +01:00
parent 90d7f7acf3
commit 2a22e1dba6

View file

@ -131,6 +131,11 @@
*/
render: function(ctx, noTransform) {
ctx.save();
var m = this.transformMatrix;
this._resetWidthHeight();
if (m) {
ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
}
if (!noTransform) {
this.transform(ctx);
}