In Photoshop a layer can be blended with a layer below it using many different ways, ie Normal, Dissolve, Darken, Soft Light, etc. I would like to duplicate this effect programmatically in iOS using the core graphics api. Any ideas?
您不能在CALayers之间应用不同的混合模式(至少在iOS上),但如果您正在实现-drawRect:或以其他方式创建图像,您当然可以使用与kCGBlendModeSoftLight
CoreGraphics混合模式的柔和光混合。
There is an example of layer blending in iOS using Core Graphics in the project I just posted here: https://github.com/esilverberg/ios-image-filters
I only implemented overlay blending so far.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.