开发者

Iphone: Converting a UIImage to RGB888 and Back again

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜