Reputation: 706
I have a requirement to convert a image to RGB888 so some effects can be performed on it, once it is done, I will receive the modified image, and I will then need to convert it from the RGB888 back to a UIImage for display.
Does anyone know if any good libraries I could look into or point me in a good direction?
Any help would be greatly appreciated.
Thanks
Upvotes: 0
Views: 801
Reputation: 31782
You'll need to render your image into a CGBitmapContext
if you want access to the individual pixels in a particular colorspace. Apple has a Technical Q&A about this very topic. To use it on iOS, you'll need to use the CGImage
property of your UIImage
. Remember that manipulating large images is very processor- and memory-intensive.
Upvotes: 1