I have a picture rectangle picture. And I use it to create a CCSprite. Then I wish to erase some pixels from the angle to make the angle smooth.
For example.
The pixels distribution of the picture is like
XXXX
XXXX
XXXX
XXXX
Then I wish to "erase" some pixels of this picture, like
OXXO
XXXX
XXXX
OXXO
"erase" means let the pixel of that position invisible. Such as setOpacity(0), setVisible(false), or directly delete the pixel. One more thing, I can't modify the original picture with tools like PS, for it is downloaded from server.
Is there anyway can do the job? Thanks