• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Better Image Scaling...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better Image Scaling...


  • Subject: Re: Better Image Scaling...
  • From: John Randolph <email@hidden>
  • Date: Tue, 18 May 2004 12:03:20 -0700

Umm,

How about:

[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh]

-jcr



On May 18, 2004, at 5:29 AM, Brent Gulanowski wrote:

On May 17, 2004, at 5:18 PM, Jerry LeVan wrote:

I have been wondering the same...

Have you tried /usr/bin/sips? ( sips -h will provide documentation)

Your AppleScript Books mentions "Image Events" :)

It seems like Python might offer a variety of scaling
algorithms in the Img package.


Jerry


On May 17, 2004, at 4:21 PM, email@hidden 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.

Not sure whom I'm addressing, but if AppKit hasn't been internally
revised to use it anyway, you might check out the vImage library:

http://developer.apple.com/documentation/Performance/Conceptual/vImage/
index.html

Perhaps direct use will let you set parameters... I haven't used it yet.

--
Brent Gulanowski email@hidden

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.


References: 
 >Re: Better Image Scaling... (From: Jerry LeVan <email@hidden>)
 >Re: Better Image Scaling... (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: disk:// and help:// security problems
  • Next by Date: Re: disk:// and help:// security problems
  • Previous by thread: Re: Better Image Scaling...
  • Next by thread: Preventing NSTableView hilighting
  • Index(es):
    • Date
    • Thread