I am quite sorry - made a silly copy/paste mistake:
I am already using [UIImage imageWithCIImage] - which is where the problem is.
As posted in the question, the problem is with going from cgimage -> ciimage -> uiimage
It works fine if I make an extra conversion from ciimage back to cgimage.
The first part of the example code {that doesn't work well} is actually as folllows and not as shown above {copy/paste mistake}
CIImage *outputImage = [CIImage imageWithCGImage:cgImage]
...do some processing with CIImage...
UIImage *finalImage = [UIImage imageWithCIImage:outputImage scale:1.0 orientation:imageOrientation];
0 comments:
Post a Comment