Re: NSImage display quality and zooming

2008-05-28 Thread Heinrich Giesen
On 28.05.2008, at 03:16, also wrote: I've created a custom NSView that displays an image and allows the user to zoom in and out. The view works in general, but the quality of the image displayed is not what I expect. When I zoom in even slightly on a high resolution image (300 dpi, 500x500) t

Re: NSImage display quality and zooming

2008-05-28 Thread Michael Vannorsdel
Could you give more detail on what you're ultimately trying to and more on the problems you're seeing in the results? On May 27, 2008, at 8:13 PM, also wrote: I had noticed this flag, but it did not solve the problem. I think this must only effect scaling when the receiving view is resized

Re: NSImage display quality and zooming

2008-05-28 Thread Dmitri Goutnik
On May 28, 2008, at 4:37 AM, also wrote: I've created a custom NSView that displays an image and allows the user to zoom in and out. The view works in general, but the quality of the image displayed is not what I expect. When I zoom in even slightly on a high resolution image (300 dpi, 500x50

Re: NSImage display quality and zooming

2008-05-27 Thread also
I had noticed this flag, but it did not solve the problem. I think this must only effect scaling when the receiving view is resized such as resizing a window. The docs are a bit vague. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: NSImage display quality and zooming

2008-05-27 Thread Michael Vannorsdel
I think this is right as well. The image can be cached in a form best suited for the first draw of it. Any further draws will very likely use the cached version and the original resolution is gone. If you set it not to cache, the image will be drawn from the original data each time. You

Re: NSImage display quality and zooming

2008-05-27 Thread also
That did the trick, many thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 Subs

Re: NSImage display quality and zooming

2008-05-27 Thread Graham Cox
I'm not 100% on this, but I think you need to set the cache mode on the NSImage to disable caching, i.e: [image setCacheMode: NSImageCacheNever]; hth, G. On 28 May 2008, at 10:37 am, also wrote: I've created a custom NSView that displays an image and allows the user to zoom in and out.

NSImage display quality and zooming

2008-05-27 Thread also
I've created a custom NSView that displays an image and allows the user to zoom in and out. The view works in general, but the quality of the image displayed is not what I expect. When I zoom in even slightly on a high resolution image (300 dpi, 500x500) the image is grainy and pixelated. If I d