开发者

How to save image in photo album?

开发者 https://www.devze.com 2022-12-22 03:49 出处:网络
I am using GLImageProcessing sample code.I want to save modified image in phot开发者_运维知识库o album how it possible.please help me.See this answer to this question for how to use glReadPixels() to

I am using GLImageProcessing sample code.I want to save modified image in phot开发者_运维知识库o album how it possible.please help me.


See this answer to this question for how to use glReadPixels() to extract the image from OpenGL ES within a CAEAGLLayer into a UIImage that you can store in the photos library using UIImageWriteToSavedPhotosAlbum(). The standard approach of using -renderInContext: to generate a UIImage from a CALayer does not work for OpenGL ES content.

0

精彩评论

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