I have an image generation code that uses UIGraphicsBeginImageContext (), UIGraphicsGetImageFromCurrentImageContext () and UIImagePNGRepresentation () to execute some drawing, and then save it to disk as PNG for later use.
Does the UIImagePNGRview () scale? As if I have an image with a width of 20 pixels, will PNG get 20 pixels or 40 pixels?
In addition, when I display these images, I use [UIImage imageWithContentsOfFile:] and [image drawInRect:]. Is there any way to hint at these methods for using a higher resolution drawing?
iphone cocoa-touch uikit ios4 iphone-4
Amy worrall
source share