FROM : Paul Lynch
DATE : Sun Jun 04 21:04:27 2006
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
DATE : Sun Jun 04 21:04:27 2006
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
| Related mails | Author | Date |
|---|---|---|
| Graham | Jun 4, 20:52 | |
| Paul Lynch | Jun 4, 21:04 | |
| Nick Zitzmann | Jun 4, 21:04 | |
| Gregory Weston | Jun 4, 22:07 | |
| Michael B Johnson | Jun 5, 00:56 | |
| Ron Fleckner | Jun 5, 01:19 |






Cocoa mail archive

