canvasext.js 305 Bytes
//>>built
define(["./_base","./canvas"],function(b,c){b=b.canvasext={};c.Surface.extend({getImageData:function(a){"pendingRender"in this&&this._render(!0);return this.rawNode.getContext("2d").getImageData(a.x,a.y,a.width,a.height)},getContext:function(){return this.rawNode.getContext("2d")}});return b});