• 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: Scale and convert image to JPEG using NSImage, NSImageRep, etc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scale and convert image to JPEG using NSImage, NSImageRep, etc?


  • Subject: Re: Scale and convert image to JPEG using NSImage, NSImageRep, etc?
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 22 Mar 2004 01:31:29 +0100

On 22. Mar 2004, at 1:10, Michael Rothwell wrote:

things like setSize: seem to only change the display size, not cause
the image to actually re-scale.

You can create a new NSImage at 50x50, lock focus on it and then draw the original into it. That should give you a new scaled image.

But when it comes to saving as JPEG, I think you'll need to use something like libjpeg.




** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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: 
 >Scale and convert image to JPEG using NSImage, NSImageRep, etc? (From: Michael Rothwell <email@hidden>)

  • Prev by Date: Re[n]: Should I even bother?
  • Next by Date: Terminate NSTask even if app crashes ?
  • Previous by thread: Scale and convert image to JPEG using NSImage, NSImageRep, etc?
  • Next by thread: Re[n]: Should I even bother?
  • Index(es):
    • Date
    • Thread