Re: Scale and convert image to JPEG using NSImage, NSImageRep, etc?
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.