cocos2d-x
文章平均质量分 62
ios_developer
这个作者很懒,什么都没留下…
展开
-
CCRenderTexture实现保存CCsprite图片
CCSprite *sprite = CCSprite::create(); CCPoint p = sprite->getAnchorPoint(); sprite->setAnchorPoint(ccp(0, 0)); CCRenderTexture *renderer=CCRenderTexture::create(sprite->getContentSi原创 2013-10-31 09:45:56 · 1556 阅读 · 0 评论 -
Convert CCImage To UIImage
+ (UIImage *) imageFromCCImage:(cocos2d::CCImage *) ccImage { NSUInteger bytesPerPixel = 4; CGDataProviderRef provider = CGDataProviderCreateWithData(NULL,翻译 2013-11-08 10:05:14 · 2685 阅读 · 0 评论