AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2010.03.22 17:45 "[Tiff] "Re: Delphi TIFF visualization"", by Mircea Malarski
2010.03.23 00:36 "Re: [Tiff] "Re: Delphi TIFF visualization"", by Olivier Paquet

2010.03.23 00:36 "Re: [Tiff] "Re: Delphi TIFF visualization"", by Olivier Paquet

On Mon, Mar 22, 2010 at 1:45 PM, Mircea Malarski <mircea.malarski@onlinehome.de> wrote:

Why here is used FirstPageBitmap.Scanline[FirstPageHeight-1] and not FirstPageBitmap.Scanline[0]?

It hard to tell for sure without knowing how FirstPageBitmap is defined. I've never used Delphi so here's my best guess: the Scanline member is an array of pointers into one large buffer (the image). Since that buffer stores the image bottom up (as the message you quoted says), the pointer of the last scanline actually points to the start of the buffer.

Olivier