We decode an image(JPEG/PNG) into a bitmap on IOS, generally, by CGImage. Now I want to know whether it’s the most efficient way to decode an image ??
Or could anyone tell me that is there any API for us to decode an image by ourselves on IOS ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use LodePNG to decode PNG files, but I don’t know how much more efficient it would be. Also you won’t be able to use it with UIKit without creating a UI or CGImage, so what is the point?