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:
- opening the file for reading
- using TIFFGetField get the attributes of the tiff image ie) length, width, ensure that it is RGB, etc
- use a for loop to go from 1 to Tiff length
- use TiffReadScanline and store it to a buffer
- use a for loop from 1 to scanelinesize, stepping by 3
- 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