2017.01.20 19:06 "[Tiff] Fwd: TIFF image displayed upside down", by Vincent Torri

2017.01.20 19:06 "[Tiff] Fwd: TIFF image displayed upside down", by Vincent Torri

Hello

I am trying to display this multipage TIFF: http://www.filedropper.com/multipagetiffexample The result I get is in this png file: http://www.filedropper.com/tiff I also want to say that it is the first time that I try to manage TIFF files and that I use the libtiff library.

The code I use to display the tiff file is: http://pastebin.com/tUstLZz2

so the result is like I display the lines in the reverse order (from bottom to top, and not from top to bottom)

note that orientation of the TIFF image is: row 0 top, col 0 lhs (ORIENTATION_TOPLEFT).

Does someone see what the problem is?

thank you

Vincent Torri