If you use Cocos 2.1.5 or upper try
because kCCImageFormatPNG force bIsRGB = true
but PNG with alpha must have 32 bit. Attention, because this method wants path and not file name
this is a criptic code for me, and I have a problem too.
I’m working on it now, but when I try to load saved RenderTexture in a new RenderTexture, I saw a strange effect on the border of my image.
as if the border, which is nuanced, lose this nuance
Simple code for me
std::stringstream path; @
@ path << CCFileUtils::sharedFileUtils~~>getWritablePath;@
@ path << “DrawingTexture.png”;@
@ renderTexture~~>clear(0, 0, 0, 0);
path << CCFileUtils::sharedFileUtils()
path << “DrawingTexture.png”;
CCSprite * sprite = CCSprite::create.c_str);
CCSize screenSize = CCDirector::sharedDirector~~>getWinSize;
CCPoint screenMiddle = ccp;