Hello Sam,

here is my contribution to your great tiff library.

It is an output module for DIB and RGBA using Mr. Poelmans Image iterator.

It has the following differences compared to the DIB output routines 
already provided by other contributors:

1. DIB Output uses DibSection objects which works on Win32 only

2. DIB Output include format conversions so the user of the lib can choose 
a well-suited DIB format he wants to have

3. Using the Image iterator makes the code very clear

4. The included RGBA output using the Image iterator is an 
alternative method for getting the image data as RGBA


The code is successfull tested with all images in 
ftp.sgi.com/graphics/v3.4pics.tar.gz.

If you have some images to test the format conversions currently marked in 
the code as "untested" please mail if you have succeed (or not..).

Note on Format conversion: This is useful if you want to display the images.
I use DrawDib functions for that and have a really speed win encountered
if the DIB has the same bpp as the display. For 16bpp displays the 565 format 
is very good. Also you could convert big images to lower bpp values so less 
memory is needed.

Also included are my (slightly modified) files of Mr. Poelmans image iterator.
See the comments for changes I have made.

To use the functions, you should include the definitions from tif_output.h
in tiffio.h.

Regards,
Hans Eckardt 
Jena, Germany

mailto: hans.eckardt@t-online.de
