iPhone SDK - CGBitmapContextCreate
- by nax_
Hi,
I would like to create an image of my own. I already know its width (320*2 = 640) and height (427).
So I have some raw data :
unsigned char *rawImg = malloc(height * width * 4 *2 );
Then, I will fill it :)
Then, I have to do something like that to get a bitmap and return a (UIImage *) :
ctx =…