how can I make a part of the image transparent, I mean, let's say I have normal image, like ball, and I want to make everyting except it transparent, ball is red and everything else is white, also how can I make it with different colors? so I can change like pink color will be transparent etc?
It's part of the image data. You make pixels transparent in the image, and then when you display it on screen, whatever you're using to display it handles the transparency.