From: Kai-Uwe Behrmann <web@tiscali.de> (Kai-Uwe Behrmann)
Date: Tue, 30 Sep 2003 17:27:42 +0200 (CEST)
Subject: [Tiff] how can i show the different TIFF tile image on the
 computer screen?
In-Reply-To: <5.2.1.1.1.20030930163247.00ea6c48@mail.wsl.ch>
Message-ID: <Pine.LNX.4.44.0309301717310.1764-100000@sirius.rasena>

Am 30.09.03, 16:38 +0200 schrieb Zuyuan Wang:

> Dear all,
>   I am the new libtiff study. What I have done till now is that I can read
> out the different tile data from the different directory. But I don't know
> what the tile data is, how can I show it on the screen? Is it possible for
> me to read the image as one whole part? Waiting for your reply.... I am
> very confused about the TIFF format....

Tiff is an complex format to serve very different needs.

The most simple way to read tiff data is with
      TIFFReadRGBAImage(tif, width, height, buffer, 0);
all data are represented as RGB with alpha, 8 bit.

The tile interface is to speed up the reading for tiffs saved in an tiled
fashion (versus stripped tiffs - the other way to store data in tiffs).

To read more look in the documentation html/libtiff.html. It is very
helpful.

>   Thanks a lot!
>   Best regards!
>   Zuyuan Wang
> ------
> Zuyuan Wang
> Swiss Federal Research Institute WSL
> Zuercherstr. 111, CH-8903 Birmensdorf, SWITZERLAND
> Phone: +41 1 739 2691   Fax: +41 1 739 2215
> Email:  zuyuan.wang@wsl.ch
>

regards
Kai-Uwe Behrmann


