在UI编辑器中添加一个图层后,使用截图就出现如下情况(容器层被我隐藏了)
(怎么上穿图片啊。。。)
左边那个绿色的就是我的容器大小,我用的是最新的coco2d-x 2.2.3 和 cocostudio 1.4.0.1
截图代码:
CCSize s = CCDirector::sharedDirector()->getWinSize();
CCRenderTexture* in_texture = CCRenderTexture::create(s.width, s.height, kCCTexture2DPixelFormat_RGBA8888);
in_texture->begin();
node->visit();
in_texture->end();
in_texture->saveToFile(“share.png”, kCCImageFormatPNG);
有没有官方人员帮看一下啊
楼主,这个问题最好怎么解决的??