Display some part of a sprite

Hello,

Is this possible to display just some pixel of a sprite and increase the visible part?

Thank you.

I think you can use CCSprite::setTexture() and CCSprite::setTextureRect().

Thank you very much it worked.
Have a good day