I remember there are such blending modes available, but couldn’t find how to do it in the CALayer docs. Does anyone know the trick?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think you can specify the blend mode used for compositing a CALayer or UIView (in particular, I suspect the “old” graphics hardware of the iPhone 3G doesn’t support it; not sure about the 3G S).
You can specify the blend mode when doing custom drawing (e.g.
-drawRect:) with-[UIImage drawInRect:blendMode:alpha:]and the relevant CGContext functions, however the resulting layer contents will be composited with (the equivalent of) kCGBlendModeNormal.