2003.10.31 00:45 "ask for suggestions....", by Zuyuan Wang

2003.10.31 10:41 "[Tiff] Re: ask for suggestions....", by Zuyuan Wang

Dear Frank,

Thanks very much for your mail. Because I am a new to TIFF, there is so many problem.... Thanks again for your kind help.

After I used the 'TIFFReadTile(IN_tif, buf_8,col,row,0,0)' to read the tile data, I used 'bufscanline_8[position]=(buf_8[(x+y*tileWidth)*3])' to read out the data,but when I print it out, they are all like '-842150451'. It shows that I make the wrong way for reading the data out. On the other hand, I tried TIFFGerR() to get the data, and later on write it into the file, but the file could not be open.

Would you like to tell me 1)what's the format of the tile image read by the TIFFReafTile, is it 'RGBRGBRGB....', for my image, they are 'PLANARCONFIG_CONTIG'.

2)How to use ' TIFFWrteScanline'? Is it possible for me to read one tile image line by line, and write into file line by line by using ' TIFFWriteScanline'?

Many thanks....
Best regards!
Zuyuan

------
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