Re: NSImage Questions
Re: NSImage Questions
- Subject: Re: NSImage Questions
- From: email@hidden
- Date: Wed, 20 Mar 2002 13:58:07 -0800
My program does some things (like scaling, rotation, etc) to images and
then
exports them. Currently it only exports to TIFF Format, thusly:
[[change TIFFRepresentation] writeToFile:myString atomically:YES];
Change is an NSImage, and myString is the path. This works perfectly.
I find myself looking to export in other formats however. For example,
JPEG.
Any clue how to export my finished image to JPEG format?
This is an FAQ, search the archives for information on
representationUsingType:properties:. You might also look at Apple's
on-line doc, at
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSBitmapImageRep.html#//apple_ref/occ/instm/NSBitmapImageRep/
representationUsingType:properties:.
Good luck.
Ben Haller
Stick Software
_______________________________________________
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.