Re: Saving an image to disk
Re: Saving an image to disk
- Subject: Re: Saving an image to disk
- From: Dario Mèndez Musicò <email@hidden>
- Date: Mon, 19 Dec 2005 22:01:53 +0100
You should be able to use NSData's writeToFile: method to do it...
Il giorno 19/dic/05, alle ore 21:51, Eamon Ford ha scritto:
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] initWithData: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
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
_______________________________________________
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