小游戏renderTexture截图

saveToFile isn’t supported on Cocos2d-Html5

用cc.game.canvas.toTempFilePathSync

Canvas.toTempFilePathSync(Object object)参考微信小游戏api

微信的这个api Canvas.toTempFilePathSync 总是截不对一个节点的尺寸。。width、height、destWidth、destHeight传的都是目标节点的width和height了。总会截到比他大的尺寸

那H5的呢。也是不知道saveToFile诶。。

saveToFile不能用啊,然后用微信的FileSystemManager.writeFile,也写不进去,贼蛋疼,什么垃圾引擎