Re: NSImage, caching and interpolation
Re: NSImage, caching and interpolation
- Subject: Re: NSImage, caching and interpolation
- From: Robert Clair <email@hidden>
- Date: Thu, 23 Mar 2006 22:42:07 -0500
I've always found the behavior of NSImage to range the full gamut
from undocumented to inexplicable. The only way I ever figured
anything out was to put in some code or use the debugger to examine
the number and type of representations the NSImage had at every step
of the way.
I, too, would have thought that it would respect the interpolation
hint and then cache the result. But if it isn't doing it, then you
probably have to draw the original image to another NSImage with the
interpolation hint and then draw the down-sampled image to the screen
(which will cause its NSBitmapImageRep to be replaced with a
NSCachedImageRep unless you tell it otherwise).
.....Bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden