2004.05.15 19:00 "[Tiff] TIFFWriteScanline endian swapping issue", by Robert Seidl

2004.05.15 20:54 "Re: [Tiff] TIFFWriteScanline endian swapping issue", by Joris Van Damme

Win XP

src.PixelPtr(row)

I'm guessing that your data is, underneath the object encapsulation, a windows DIB with 24bit RGB. Windows DIBs store 24bit RGB as B-G-R. Tiff/LibTiff is rooted in unix and platform independent traditions, they do things in oposite oposite order (pun intended), and as such expect R-G-B instead. Thus, neither party is to blame or buggy, but your glue code in-between needs to swap the bytes.

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html