简体   繁体   中英

How to Add Hue Effect on UIImage by modifying Pixel Value of Image in iPhone App

want to add hue filter in iPhone app I want to write a code to add Hue Image Effect with different parameter value of Hue value by modifying the pixel value of Image. How can I do this. Overall I want to add Hue Image Filter by manipulating each Pixel value of Image. But waht the actual value for Pixel in adding Hue effect.

You need to use CoreImage for that, specifically a CIFilter. There are plenty of examples online, but there's one in the apple developer website that matches exactly what you want:

Go to here and check the section "Creating a CIFilter Object and Setting Values", there it shows how to create a hue filter for a given image.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM