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: Ken Tozier <email@hidden>
- Date: Sun, 4 Jul 2004 15:57:58 -0400
That sounds easy enough, but the main problem isn't the tiff
conversion, it's generating the images out of thin air.
Basically I want to create an image with a specified width and height,
frame it with a border in a specified color and write 3 to 4 lines of
styled text centered in the box horizontally and vertically.
Any tips or links on how to do that?
Thanks,
Ken
On Jul 4, 2004, at 3:02 PM, email@hidden wrote:
[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.
_______________________________________________
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.