• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
      • From: Andreas Mayer <email@hidden>
References: 
 >Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions (From: Ray <email@hidden>)
 >Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions (From: David Duncan <email@hidden>)
 >Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions (From: Andreas Mayer <email@hidden>)

  • Prev by Date: mogenerator and key path error
  • Next by Date: Re: Can't delete file on device
  • Previous by thread: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
  • Next by thread: Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions
  • Index(es):
    • Date
    • Thread