I want to imitate the blending of the soft light layer of the Photoshop layer in iOS

In Photoshop, a layer can be mixed with the layer below it, using many different methods, that is, Normal, Dissolve, Darken, Soft Light, etc. I would like to duplicate this effect programmatically in iOS using the main api graphics. Any ideas?

+3
source share
2 answers

You cannot apply different blending modes between CALayers (at least on iOS), but if you implement -drawRect: or otherwise create an image, you can, of course, use soft blending of light using the kCGBlendModeSoftLightCoreGraphics blend mode.

+4
source
0

Source: https://habr.com/ru/post/1788094/


All Articles