iOS-调整UIImage的色调 [英] iOS - adjust hue of UIImage

查看:87
本文介绍了iOS-调整UIImage的色调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以调整UIImage / CGContextRef的色相?
我尝试将Context与Color和Hue混合模式混合,但是结果是错误的。

Is it possible to adjust Hue of the UIImage/CGContextRef? I have tried to blend Context with Color and Hue blend mode but result was wrong.

我应该将RGB转换为HSB,调整HSB并转换回吗? / p>

Should I convert RGB to HSB, adjust HSB and convert back?

推荐答案

对于iOS 5,您可以使用核心图像过滤器名称CIHueAdjust。

For iOS 5, you can use core image filter name CIHueAdjust.

CIHueAdjust过滤器

这篇关于iOS-调整UIImage的色调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆