Re: NSImage from Web: Resolution
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.