| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2009.04.13 16:08 "Re: writing in-memory tiffs", by Jason SummersChristian Henning wrote: > Hi there, > > last Wednesday I posted a problem when writing in-memory images, but > so far, no one replied. Can someone please tell me if the sample > program I posted is suppose to work? I don't believe your sample program will work, because you didn't implement seek_proc or read_proc or size_proc. seek_proc is required. Libtiff doesn't necessarily write the bytes in order. You might get away with having read_proc always fail, provided you never write multi-image TIFFs, but I wouldn't rely on that. Unlike other libraries, libtiff cannot write to write-only files. And make sure that your read_proc fails if there is nothing to read. If it returns bytes that were not written, bad things will happen. I don't know if size_proc is ever called when writing TIFFs, but why chance it? |
|||||||