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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -