• 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: NSImage from Web: Resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage from Web: Resolution


  • Subject: Re: NSImage from Web: Resolution
  • From: Marcel Weiher <email@hidden>
  • Date: Sun, 16 Dec 2001 15:29:36 +0100

On Sonntag, Dezember 16, 2001, at 06:51 Uhr, Matt Judy wrote:

The problem is, if the resolution of the downloaded image is higher than 72 dpi (e.g. 300 dpi), the image is rendered at that resolution, appearing much smaller on the screen than it should. Seems like a bug (image should match resolution of display device), but anyway...

This is not a bug but the intended behavior. The resolution of the image is independent of the resolution of the display device. It just says how much precision this image has. For example, should an image that is 1 inch x 1 inch in size on-screen display at 1/10th the size on your 720 dpi printer?

However, web-displays often assume the other, buggy behavior, which is why it should probably be an option for images obtained via the web. The solution you found (use NSBitmapImageRep) is very workable, and NSBitmapImageRep should probably be preferred for image-loading when some sort of control is required.

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.


References: 
 >NSImage from Web: Resolution (From: Matt Judy <email@hidden>)

  • Prev by Date: Re: NSBeginAlertSheet()
  • Next by Date: Drawer: drag-n-drop destination?
  • Previous by thread: Re: NSImage from Web: Resolution
  • Next by thread: Scaling an NSMovie proportionally
  • Index(es):
    • Date
    • Thread