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.
size
has to do with the distance between points on the display, as so the number of points on a retina display are doubled. size
does not represent the number of pixels as you assumed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With