Re: better image scaling?
Re: better image scaling?
- Subject: Re: better image scaling?
- From: matt neuburg <email@hidden>
- Date: Tue, 18 May 2004 11:46:00 -0700
On Tue, 18 May 2004 17:01:14 +0800, James Chen <email@hidden> said:
>
Hi, Try to use NSGraphicsContext's setImageInterpolation
>
or setShouldAntialias.
It turned out that setImageInterpolation using *no* interpolation
(NSImageInterpolationNone) solved the problem. (Those who advised setting it
to NSImageInterpolationHigh had it exactly backwards; that made it fuzzier.)
Thx!
m.
>
On May 18, 2004, at 2:21 AM, matt neuburg wrote:
>
>
> In my app I scale images to make thumbnails using
>
> NSImageRep drawInRect:. When these thumbnails are
>
> reasonably large it is easy to see that the results are
>
> fuzzy - much fuzzier than, for example, when Photoshop
>
> does the same scaling. Is there anything I can do about
>
> this? I'm not very expert on graphics but I get the idea
>
> that there is more than way to scale. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.