Re: Creating Really Big TIFF's
Re: Creating Really Big TIFF's
- Subject: Re: Creating Really Big TIFF's
- From: publiclook <email@hidden>
- Date: Thu, 10 Jul 2003 13:21:57 -0400
I would make an image rep of whatever size is convenient. Then I would
translate, clip, and draw whatever portion up to 100% of the image was
convenient. Then I would save the image rep to a file is some
convenient format. Then I would change the translation and clipping
and draw whatever portion up to 100% of the image was convenient. Save
that to disk. And continue the process until everything is tiled.
If you need a vector format like Postscript of PDF, this is not
necessary because there are no pixels to store and it is already
resolution independent.
If the image you need to create is less than ~2Gb, just create it and
draw the whole thing in one pass. Virtual memory will take care of
everything for you, but it will be SLOW as memory is swapped in and out
from disk.
On Thursday, July 10, 2003, at 07:47 AM, Robert Clair wrote:
I need to make very large tiff files at printer resolution, say
600 dpi or more, from the Cocoa drawing instructions in my view.
Since this is potentially hundreds of Mbytes, just making an NSImage
with
a correct size NSImageRep, drawing on it and using -TiffRepresentation
isn't going to fly. (Can't assume the user has a G5 with 8 gig
of memory :-) )
The last time I had to do something like this (years go, X11, Sun)
I banded the image, created PostScript files for the bands and
then post-processed them through a hacked up version of
GhostScript to produce targa files (what was needed for the job)
and some code to sew the tga's together.
Is there some way to make Cocoa do the banding ? It must
be able to do something like this because you can print. I suspect
what I need is a dummy printer that specifies the page size and
resolution
and accepts the pixels, which it will stream to a file. Raw pixels and
fixing up into tiff or whatever as a post process is OK.
Any suggestions on where to look for the info ?
Thanks,
Bob Clair
_______________________________________________
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.