I'm creating a CIImage from a UIImage as follows:
CIImage* someCIImage = [CIImage imageWithCGImage:someUIImage.CGImage];
Comparing someCIImage.extent.size.width/height
with someUIImage.size.width/height
, I find that sometimes the CIImage is double size in dimensions, and sometimes its the same size as the UIImage.
It seems like if the UIImage is slightly larger, the CIImage is double the size, whereas if the UIImage is slightly smaller this isn't the case.
Has anyone seen this before/know why this is? This is causing me real trouble as I'm trying to draw a CIImage from a loaded UIImage.
scale
method of theUIImage
; it should tell you how to convert the size to pixels. – Dysthymia