Convert bitmap image information into CGImage in iPhone OS 3
- by giftederic
I want to create a CGImage with the color information I already have
Here is the code for converting the CGImage to CML, CML_color is a matrix structure
- (void)CGImageReftoCML:(CGImageRef *)image destination:(CML_color &)dest{
CML_RGBA p;
NSUInteger width=CGImageGetWidth(image);
NSUInteger height=CGImageGetHeight(image);
…