How can I draw the CGImageRef context on the screen?
I have a nice CGImageRef context that I created all day to get alpha values;)
Defined as follows:
CGContextRef context = CGBitmapContextCreate (bitmapData, pixWidth, pixHeiht 8, pixWidth, NULL, kCGImageAlphaOnly);
So, for my understanding, this context somehow represents my image. But "practically", invisible somewhere in the memory.
Can I use this in a UIImageView or draw directly to the screen? I am assuming the alpha will be converted to grayscale or something.
+1
a source to share