Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blending modes on CALayers on screen? Is that possible?

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.

like image 276
Duck Avatar asked Sep 11 '09 10:09

Duck


People also ask

How do I change the blending mode to Screen in Photoshop?

How To Change The Blending Mode in Photoshop? To change a Layer Blending Mode, you can go to the unlabeled dropdown on the top left of the Layers panel and choose another blending mode for the currently active layer. By default, all Layers are set to Normal, and groups are set to Pass Through.


1 Answers

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.

like image 185
Brad Larson Avatar answered Sep 29 '22 07:09

Brad Larson