TTiffFile -  a component to read tiff files

>> what's in this zip file <<

tiff.txt - this file.

tifffile.pas - component to read tif files
tifffile.dcr

tifimage.pas - component to view the tiff images
tifimage.dcr

(dcr's are 16 bit. open and save in image editor 
before using in delphi 2.0)

>> About this component <<

This is a component I wrote to read tiff files, as part of
a project that subsequently didn't go anywhere. I thought about
writing it up as a shareware component, but I didn't have time
to add writing to the tiff file, which I would have had to do
and also color images. So I have chosen to release the code
for general use. Warning: this isn't finished. There's
a bug or to, and some shortcomings you might consider
bugs. Where I am aware of these, they are clearly documented.

There's no native vcl to read tiff files. Something like imageknife
or other things are available, but dll's, ocx's and vbx's just not as
convenient as having source code. Hence this component, which will
compile either under delphi 1 or 2.

This component is based on the official tiff 6.0 specification.
I downloaded this from adobe in .pdf format.

This component will parse standard tiff files, and read mono
images - uncompressed and ccitt 3.0 compressed images.

Copyright  Grahame Grieve.

This code is public domain, but if you distribute components based
on this you must acknowledge the source.
If you develop any more sophisticated components from this source,
please send me a copy.

>> how to use this component <<

Set the filename to the tiff file you want to read.
Use imagecount to determine the number of images available
in the file.
Currentimage - the currently selected image.
Width,Length,InvertColour,ImageType - properties of the currently 
    selected image
readbitmap - returns a HBitmap containing current image

>> limitations <<

For some reason, images aren't loaded properly in 32bit. When I
figure it out, I'll post a fix.

Grahame

g.grieve@pgrad.unimelb.edu.au
