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

Re: Saving an NSImage to an image file


  • Subject: Re: Saving an NSImage to an image file
  • From: Paul Lynch <email@hidden>
  • Date: Sun, 4 Jun 2006 20:04:27 +0100


On 4 Jun 2006, at 19:52, Graham wrote:

I can find a couple of sample pieces to do this, but they are part of something more complex and I cannot determine what I need.
So how do I save an NSImage instance (obtained from an NSURL) into a file, .tif or jpeg or whatever? Assume I already have a file path for the file.

Start with the TIFFRepresentation of your image, and therefore writeToFile:options:error:/writeToURL:options:error:. After that, it depends on the image type and the NSImageRep subclass that supports your desired format.


Paul

_______________________________________________
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 NSImage to an image file (From: Graham <email@hidden>)

  • Prev by Date: Saving an NSImage to an image file
  • Next by Date: Re: Saving an NSImage to an image file
  • Previous by thread: Saving an NSImage to an image file
  • Next by thread: Re: Saving an NSImage to an image file
  • Index(es):
    • Date
    • Thread