From: warmerdam@pobox.com (Frank Warmerdam)
Date: Wed, 10 Sep 2003 09:04:44 -0400
Subject: [Tiff] read in whole tiff file
In-Reply-To: <MJEBIBGMCDKIGEHPDECCMEAKCBAA.pushkar@erc.msstate.edu>
References: <MJEBIBGMCDKIGEHPDECCMEAKCBAA.pushkar@erc.msstate.edu>
Message-ID: <3F5F216C.6020705@pobox.com>

Pushkar Pradhan wrote:
> Is there a way to read in the complete TIFF file in one READ call? I need to
> do this. Thanks,
> Pushkar Pradhan

Pushkar,

I find it almost impossible to imagine a compelling need to read an entire
TIFF file in one call.  Computer programming languages include looping
constructs in order to allow us to complete an aggregate result by a series
of small operations, and subroutines so we can bundle them into packages
as needed.

However, the TIFFReadRGBAImage() call will read a whole open TIFF image into
a memory array in RGBA (red/green/blue/alpha) form in a single call.  Try
reading over the man page on it and see if it is suitable to your needs.

Later,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



