如何将 UIColor 应用到现有图像?
我有 a1.png
图像。 我想对该图像应用颜色效果。 我所说的“应用颜色”是指 alpha < 的前景色。 1. 有人有解决办法吗?
I have a1.png
image.
I want to apply a color effect on that image.
By "apply a colour" I mean a foreground color with alpha < 1.
Does anyone have a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您正在寻找 GLImageProcessing 示例代码
I think you are looking for GLImageProcessing sample code
我还没有找到将 UIColor 应用于现有图像的解决方案。
一种替代方法是,您可以获取视图并将颜色应用于视图,而不是对图像应用颜色。
I haven't get solution for applying UIColor to existing image.
One alternative way is that instead of applying color to an image you can take a View and apply color to the view.