Re: NSImage ignoring interpolation: Is this a bug?
Re: NSImage ignoring interpolation: Is this a bug?
- Subject: Re: NSImage ignoring interpolation: Is this a bug?
- From: Scott Stevenson <email@hidden>
- Date: Sat, 25 Nov 2006 15:09:03 -0800
On Nov 25, 2006, at 1:16 PM, Mark Onyschuk wrote:
Just a thought, the -[NSImage compositeToPoint:operation:] is a
method from back in the NeXTstep days and has some behaviors that
are meant to be compatible with code from the days of Display
Postscript.
You might find that the -drawInRect:fromRect:operation:fraction:
method (that's new in Mac OS X and Quartz) behaves better for you.
This does draw a bit better, but disabling the cache seems to be the
only way to get the smoothest final result.
The -drawInRect:fromRect:operation:fraction: method also works better
in flipped coordinated systems, drawing from the top instead of the
bottom. (You have to call setFlipped:YES on the image, of course).
Thanks,
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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 Subscription:
This email sent to email@hidden