• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving an image to disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Saving an image to disk (From: Eamon Ford <email@hidden>)

  • Prev by Date: Re: [CORE DATA] BackgroundFetching app explanation, and more...
  • Next by Date: Re: Using the QuickLite framework when building a Foundation tool
  • Previous by thread: Saving an image to disk
  • Next by thread: Re: Saving an image to disk
  • Index(es):
    • Date
    • Thread