Re: Scaling a window background image quickly
Re: Scaling a window background image quickly
- Subject: Re: Scaling a window background image quickly
- From: Ben Lachman <email@hidden>
- Date: Sun, 6 Apr 2008 02:08:29 -0400
On Apr 5, 2008, at 8:28 PM, Quincey Morris wrote:
On Apr 5, 2008, at 16:45, Mike R. Manzano wrote:
Unfortunately, that still didn't work. The resultant images
continue to be pixelated, as you can see here:
http://instantvoodoomagic.com/stickycapture.png
IIRC this came up on the list a couple of weeks ago. You need to
set the interpolation quality in the graphics context to
NSImageInterpolationHigh because the default value of "low" just
replicates pixels.
The other thing you might want to do for speed is draw differently
based on whether or not you are in a live resize. Use -inLiveResize
to check in your drawRect: and possibly set the interpolation to low
during a resize and high at other times.
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email@hidden
740.590.0009
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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 Subscription:
This email sent to email@hidden