Re: Generating simple on-the-fly TIFF files
Re: Generating simple on-the-fly TIFF files
- Subject: Re: Generating simple on-the-fly TIFF files
- From: email@hidden
- Date: Sun, 4 Jul 2004 15:02:45 -0400 (EDT)
[yourImage TIFFRepresentation]
Basically that returns tiff data (as NSData*), there is another similar
command that allows you to sepcify compression. Check out the NSImage
header. You could do something like this say to write to a file:
NSData * tiffData= [yourImage TIFFRepresentation];
[tiffData writeToFile:aPath atomically:YES];
April.
P.S. just had to do this for an app and it works swimmingly
>
I'm working on a class to handle the layout of ads in a newspaper and
>
would like to generate TIFF placeholders for ads that haven't been
>
completed yet.
>
>
Does anyone know of example projects showing how to create images and
>
save them outside of any window or view? All the example projects I've
>
been able to find use windows.
>
>
Thanks,
>
>
Ken
>
_______________________________________________
>
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.
_______________________________________________
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.