• 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: Resolution of an NSImage(Rep)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolution of an NSImage(Rep)?


  • Subject: Re: Resolution of an NSImage(Rep)?
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 5 Aug 2010 12:07:39 -0700

On Aug 5, 2010, at 11:23, Brian Postow wrote:

> the representations size is also in points.

Well, to clarify, do you really mean "size"? I would assume that imageRep.size.width == image.size.width (both are in points), but imageRep.pixelsWide would be different, if the resolution is not 72 dpi. Did you actually check pixelsWide/pixelsHigh?

Incidentally, if your scenario is intentionally working with only a single image representation, then it's probably better (and, I'd say, with 10.6 definitely better) to avoid NSImage completely and stick with just NSImageRep throughout the scenario. I don't think there are any API reasons left to prefer NSImage, when multiple representations are not at issue, but others may have a more informed opinion on that subject than I do.


_______________________________________________

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: Resolution of an NSImage(Rep)?
      • From: Brian Postow <email@hidden>
References: 
 >Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Graham Cox <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Quincey Morris <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Quincey Morris <email@hidden>)
 >Re: Resolution of an NSImage(Rep)? (From: Brian Postow <email@hidden>)

  • Prev by Date: Re: Resolution of an NSImage(Rep)?
  • Next by Date: Re: calling a function in one class from another
  • Previous by thread: Re: Resolution of an NSImage(Rep)?
  • Next by thread: Re: Resolution of an NSImage(Rep)?
  • Index(es):
    • Date
    • Thread