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?
views:
19answers:
1
+2
A:
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.
tc.
2010-09-26 16:31:36