Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
- Subject: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
- From: Ray <email@hidden>
- Date: Wed, 28 Mar 2012 10:55:22 +0200
On Mar 27, 2012, at 7:29 PM, David Duncan wrote:
> Simplest solution is to save the scale along side the image itself (under the assumption that this data can possibly end up on a non-retina device for some reason) or to create a new UIImage with the screen scale via +imageWIthCGImage:scale:orientation: (assuming it cannot) after you load it with +imageWithData:.
Right, I think I'm going to save the scale for now (in concert with +imageWIthCGImage:scale:orientation: which I planned to use already, based on whether an image was saved under the old or new code base). Thanks for your reply btw!
- Ray.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden