javascript - problems with EaselJS getCacheDataURL -
i have problems using getcachedataurl
. function work correctly in chrome dont work in ie 10 , firefox. so:
var cont = new createjs.container(); var cont.cache(0,0,50,50); var bitmap = new createjs.bitmap(cont.getcachedataurl()); var stage = new createjs.stage(); stage.addchild(bitmap);
instead of using todataurl, use cont.cachecanvas
source, creates bitmap points canvas created cache. faster exporting canvas image , using image.
var bitmap = new createjs.bitmap(cont.cachecanvas);
additionally, second line looks wrong:
var cont.cache(0,0,50,50);
var
doing nothing in context.
Comments
Post a Comment