需要做一个离屏截图功能
var renderTexture = cc.RenderTexture.create(Math.floor(width), Math.floor(height));
renderTexture.begin();
node._sgNode.visit(); // 精灵 或者 Graphics
renderTexture.end();
在浏览器和构建后微信开发工具中 都正常
但如果在微信开发工具中通过二维码在手机微信上调试 则发现通过renderTexture截取的图像被一定比例放大了,比例不确定