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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -