Saving an image to disk
Saving an image to disk
- Subject: Saving an image to disk
- From: Eamon Ford <email@hidden>
- Date: Mon, 19 Dec 2005 12:51:57 -0800
This is sort of a newbie question, but how do I save an NSImage as a
regular tiff image to the disk? I'm using this code to initialize the
image (and "rep" is an NSBitmapImageRep):
NSData * tiffImage = [rep TIFFRepresentation];
NSImage * screenshot = [[NSImage alloc] initWith
Data:tiffImage];
But I don't even know if this is the best way to do it.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden