hi,
I want to dynamically change my ccsprite object’s texture. So i code as below:
CCSprite sp = CCSprite::spriteWithFile;
sp~~>setPosition);
this~~>addChild;
CCTexture2Dtex = CCTextureCatch::sharedTextureCatch()>addImage;>setContentSize(tex~~>getContentSize);
sp
sp~~>setTexture(tex);
but, i found the sp2.png size is larger than i want,
i want to know why?
some guys can help me ?
thank you!