AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.05.15 19:00 "TIFFWriteScanline endian swapping issue", by R Seidl
2004.05.15 20:39 "Re: TIFFWriteScanline endian swapping issue", by Bob Friesenhahn
2004.05.15 21:09 "Re: TIFFWriteScanline endian swapping issue", by Joris Van Damme
2004.05.15 22:46 "Re: TIFFWriteScanline endian swapping issue", by R Seidl
2004.05.15 20:54 "Re: TIFFWriteScanline endian swapping issue", by Joris Van Damme
2004.05.16 07:03 "Re: TIFFWriteScanline endian swapping issue", by Andrey Kiselev

2004.05.15 20:54 "Re: 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