I am looking for a way to draw a CGImageref and CGBitmapContextRef on CGL Context?
Share
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.
To draw to a CGL context you need to setup an openGL texture from the CGImage. To do so you have to access the raw pixels of the image as described here:
http://developer.apple.com/library/ios/#qa/qa1509/_index.html
if you have those pixels it’s just a matter of creating an openGL texture from those pixels. Just google for tutorials, you should find plenty, i.e:
http://www.cse.msu.edu/~cse872/tutorial4.html