Re: Resolution of an NSImage(Rep)?
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