xcode - CCLayer to UIImage - Anti-aliasing? -
when grab snapshot of cclayer uiimage of ccrendertexture seems i'm loosing anti-aliasing, resulting in output image looking different screen looks like.
is there way of getting output image corresponds more shown on screen?
this how i'm getting uiimage:
-(uiimage*)layerrepresentation { cclayer *layer1 = self; ccrendertexture *renderer01 = [ccrendertexture rendertexturewithwidth:layer1.contentsize.width height:layer1.contentsize.height]; [renderer01 begin]; [self visit]; [renderer01 end]; uiimage *image = [renderer01 getuiimage]; return image; }
when ccrendertexture created, sendssetaliastexparameters
message texture. try
[renderer01.sprite.texture setantialiastexparameters];
Comments
Post a Comment