Hi all I’m trying to save my game screenshot to sd card on my android phone,
I found that to save the screen I can use CCRenderTexture and saveBuffer.
I already figure out how to save the image file with this
bool saveBuffer(const char *szFilePath, int x = 0, int y = 0, int nWidth = 0, int nHeight = 0);
My question is :
where will the be saved id i used this
bool saveBuffer (int format, const char *name, int x=0, int y=0, int nWidth=0, int nHeight=0)
function ?
but I’m sorry I still don’t understand about it.
In this function :
bool saveBuffer (int format, const char *name, int x=0, int y=0, int nWidth=0, int nHeight=0)