AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.08.12 00:11 "TIFF Lib - Reading and writing pixel to TIFF file", by Davor Bonaci
2000.08.12 20:31 "RE: TIFF Lib - Reading and writing pixel to TIFF file", by Brian Herron

2000.08.12 20:31 "RE: TIFF Lib - Reading and writing pixel to TIFF file", by Brian Herron

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