Message-ID: 01C0047A.D4CE1250@pulsar.objectworld.com
To: "'TIFF Mailing list'" <tiff@olympiakos.com>
Subject: RE: TIFF Lib - Reading and writing pixel to TIFF file
From: Brian Herron <bherron@objectworld.com>
Date: Sat, 12 Aug 2000 16:31:55 -0400
Sender: owner-tiff@olympiakos.com


I am still fairly new with Libtiff but this should be pretty basic:

1) opening the file for reading
2) using TIFFGetField get the attributes of the tiff image ie) length, width, ensure that it is RGB, etc
3) use a for loop to go from 1 to Tiff length
4) use TiffReadScanline and store it to a buffer
5) use a for loop from 1 to scanelinesize, stepping by 3
6) access the buffer which has the scan line stored, at counter (from #5) +0 for Red, +1 for Green, and +2 for Blue

Hope this helps,
Brian Herron


-----Original Message-----
From:   Davor Bonaci [SMTP:Davor.Bonaci@public.srce.hr]
Sent:   Friday, August 11, 2000 8:12 PM
To:     tiff@olympiakos.com
Subject:        TIFF Lib - Reading and writing pixel to TIFF file


I am using a LibTiff library for reading and writing into
TIFF graphic files. I need to get for each pixel each RGB
value. Can you send me a code to do that or explain how
to do it ?
Thanks.

                         Davor Bonaci
--
E-mail: Davor.Bonaci@public.srce.hr
Web: http://pubwww.srce.hr/~dbonaci


