Re: Saving TIFF Files
Re: Saving TIFF Files
- Subject: Re: Saving TIFF Files
- From: JP Stringham <email@hidden>
- Date: Thu, 13 Dec 2001 22:42:06 -0500
Arg. Well that's painfully simple. I thought the fact that the -
TIFFRepresentation call returned an NSData object meant that writing it
to file like this would cause it to be unreadable. Ah well - thanks a
million, this makes my life much easier :)
- John Stringham
On Thursday, December 13, 2001, at 09:32 PM, John C. Randolph wrote:
On Thursday, December 13, 2001, at 04:50 PM, JP Stringham wrote:
Hi all,
I've poked through the documentation extensively, and I've
found a number of ways of saving TIFF data - the only problem I
have is deciding which one to use. My question is this: How can
I save a TIFF image in an NSBitmapImageRep in a normal TIFF
format (ie. non-proprietary apple NSData format..) so that it
can be opened in other image applications?
NSBitmapImageRep *myRep;
[[myRep TIFFRepresentation]
writeToFile:@"/path/to/the/file.tiff" atomically:YES];
-jcr
"Only in a police state is the job of a policeman easy." - Orson Welles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.