0

私は小さな問題を抱えています。このコードでゲームのスクリーンショットを撮ることができます

+(UIImage*) screenshotWithStartNode:(CCNode*)startNode
{
[CCDirector sharedDirector].nextDeltaTimeZero = YES;

CGSize winSize1 = [CCDirector sharedDirector].winSize;
CCRenderTexture* rtx =
[CCRenderTexture renderTextureWithWidth:winSize1.width
                                 height:winSize1.height];
[rtx begin];
[startNode visit];
[rtx end];

return [rtx getUIImage];
}

撮影したスクリーン ショットを取得し、後でソーシャル ネットワーキング Web サイトで共有する必要があります。iPhone SDK では可能ですが、cocos2d では可能ですか?

はいの場合、どのように?

4

1 に答える 1