Use Item.draw in rasterize

This commit is contained in:
Peter 2012-12-23 17:52:43 +01:00
parent 734cc1cc61
commit 1bb7c9f1aa

View file

@ -1020,7 +1020,7 @@ var Item = this.Item = Base.extend(Callback, /** @lends Item# */{
matrix = new Matrix().scale(scale).translate(-bounds.x, -bounds.y);
matrix.applyToContext(ctx);
// XXX: Decide how to handle _matrix
this.draw(ctx, {});
Item.draw(this, ctx, {});
var raster = new Raster(canvas);
raster.setBounds(bounds);
return raster;