Question

Is that possible to have a CALayer over another one composed using a blending mode on screen?

I now that it is possible to do that offscreen using drawinrect, but is it possible to see it live on the screen?

thanks for any help.

Was it helpful?

Solution

Simple compositing is done for you with CALayers. If the layer is marked as being non-opaque, any transparent or translucent areas will allow content from layers behind the current one to show through.

On the Mac, Core Image filters can be used to add effects to this process via the compositingFilter, backgroundFilter, or filters properties. However, Core Image is not available on the iPhone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top