Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
- Subject: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
- From: David Duncan <email@hidden>
- Date: Tue, 27 Mar 2012 11:13:38 -0700
On Mar 27, 2012, at 10:59 AM, Andreas Mayer wrote:
>
> Am 27.03.2012 um 19:29 schrieb David Duncan:
>
>> Simplest solution is to save the scale along side the image itself
>
> That's what I just implemented. But I still think PNG images should retain the scale factor. Why saving that information elsewhere when the format explicitly supports this?
Primarily because people abuse the resolution field, and as such it cannot be trusted for this particular function. In a perfect world, we would only ever see 72 (1x) or 144 (2x) in the resolution field, but instead the value tends to be practically random.
--
David Duncan
_______________________________________________
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