Re: Easiest way to convert an NSImage to a JPEG
Re: Easiest way to convert an NSImage to a JPEG
- Subject: Re: Easiest way to convert an NSImage to a JPEG
- From: Greg Hulands <email@hidden>
- Date: Thu, 20 May 2004 12:37:38 +1000
Get the bitmaprep of the image and use NSBitmapImageReps
representationUsingType:properties: method.
HTH,
Greg
On 20/05/2004, at 11:38 AM, John Stiles wrote:
What's the simplest way to go from an NSImage* (or NSImageRep*) to a
JPEG file on my hard disk? i.e. something like:
[myImage createJPEGFile:@"/blat.jpg" withQuality:100.0f]; // this
function is made up
I have some Carbon-based solutions already, but Cocoa always seems to
make things easier :)
_______________________________________________
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.
_______________________________________________
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.