Is there any difference between CGImageGetWidth(workingImage.CGImage) and workingImage.size.width ? Is the first faster or safer? I know that in the second case I get the value directly.
Is there any difference between CGImageGetWidth(workingImage.CGImage) and workingImage.size.width ? Is the first faster or
Share
Actually both of them returns the same result.
CGImageGetWidth(Image.CGImage)returns the Bitmap image width,Image.size.widthreturns the UIImage width. If you ask about safe/fast, i think first one will be faster, because it comes from ApplicationServices framework and the second one is from UIKit framework. Hope this helps you..