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

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

2005.04.06 12:19 "PB with TIFFWriteScanline, writing after data", by <samuel@studiofx.fr>
2005.04.06 12:53 "Re: PB with TIFFWriteScanline, writing after data", by Joris Van Damme

2005.04.06 12:19 "PB with TIFFWriteScanline, writing after data", by <samuel@studiofx.fr>

Hi !

I've made a function called createEmptyFile(TIFF* file, uint32 width, uint32
height) wich create an empty file opened with TIFFOpen(".","r").

This function set different TAGS like :

TIFFTAG_IMAGEWIDTH
TIFFTAG_IMAGELENGTH
TIFFTAG_SAMPLESPERPIXEL
TIFFTAG_BITSPERSAMPLE
TIFFTAG_PLANARCONFIG
TIFFTAG_PHOTOMETRIC
TIFFTAG_ROWSPERSTRIP

Then with a FOR loop, it fills the raster data with 0xFF and thanks to the
TIFFWriteScanline function.

This work perfectly!

But then when a want to alter one row by calling TIFFWriteScanline again,
raster data are written after the existing raster data and before the ending
directory (the different tags). So it doesn't overwrite the row I want to!

Is it normal?

 

Thank you very much if you can help me!

And sorry my English is not so good..

 

sam