如何使用其他混合模式(例如屏幕或乘法)渲染CALayer? [英] How to render a CALayer with a different blending mode, like screen or multiply?
本文介绍了如何使用其他混合模式(例如屏幕或乘法)渲染CALayer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 UIImageView
,并希望它以特定的混合模式显示。我知道iPhone有不同的混合模式,可能可以用很多CG代码来完成它……但是 UIImageView
?
I have a UIImageView
and want it to be displayed with a specific blend mode. I know the iPhone has different blend modes, and it's probably possible to do it with a lot of CG code… but maybe there's a nice way with the CALayer
of UIImageView
?
推荐答案
请参见此处:复合颜色:iPhone上的CALayer和混合模式
这篇关于如何使用其他混合模式(例如屏幕或乘法)渲染CALayer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文