• 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
Saving an image to disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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] 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
  • Follow-Ups:
    • Re: Saving an image to disk
      • From: Scott Anguish <email@hidden>
    • Re: Saving an image to disk
      • From: Dario Mèndez Musicò <email@hidden>
  • Prev by Date: Re: NSBundle dynamic loading problem
  • Next by Date: Re: [CORE DATA] BackgroundFetching app explanation, and more...
  • Previous by thread: Re: Using the QuickLite framework when building a Foundation tool
  • Next by thread: Re: Saving an image to disk
  • Index(es):
    • Date
    • Thread