NSImage, caching and interpolation
NSImage, caching and interpolation
- Subject: NSImage, caching and interpolation
- From: Scott Thompson <email@hidden>
- Date: Thu, 23 Mar 2006 20:37:14 -0600
I'm a bit annoyed with NSImage and it's behavior when caching an image.
I have created an NSImage from a file. The original image is about
640x480. I want that image to draw to the screen at a resolution
closer to 300x200 or so and I want to use high-quality interpolation.
I have been able to get this effect by asking that the NSImage use
"cache never" and by setting the interpolation quality for the
destination context to high quality before asking the image to draw.
If I ask that the image use caching, however, the interpolation
quality is shot to heck.
This comes into play in another instance as well. If I want to
change the image in question after I've created it, I can lockFocus
on it an draw. What appears to happen, however, is that when I lock
focus, the system creates a drawing surface and copies the current
image into it. Unfortunately, when it does so it copies the image
with the poor interpolation quality again.
I want my NSImage to use high quality interpolation when re-caching.
Is there any way to have some control over the interpolation quality
when the cached image is created?
Scott
_______________________________________________
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