Suppose I have image canvas or previously loaded image which supports transparency (gif/png). What are the steps to implement changing transparency for the image, but not for the whole image, but only a part of it? I undestand I should use CGContext, but i'm lacking the details.
Asked
Active
Viewed 1,173 times
1 Answers
3
1) create a memory buffer
2) cast it into a CGContext
with alpha by using CGBitmapContextCreate
3) draw your image into it with CGContextDrawImage
4) modify the mask via the buffer you created in step 1.
5) $$$

Rhythmic Fistman
- 34,352
- 5
- 87
- 159