iphone - cocos2d taking screenshot in a part of layer? -
i want take screenshot middle part of layer(it's image) without menus positioned in upper , lower part of screen.is possible take part of layer image?
//normal screenshots -(uiimage *) screenshotwithnode:(ccnode*)node { [ccdirector shareddirector].nextdeltatimezero = yes; cgsize winsize = [ccdirector shareddirector].winsize; ccrendertexture* rtx = [ccrendertexture rendertexturewithwidth:winsize.width height:winsize.height]; [rtx begin]; [node visit]; [rtx end]; return [rtx getuiimage]; }
Comments
Post a Comment