SaveIFD property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int SaveIFD;

Delphi Syntax

SaveIFD : LongInt;

Overview

Refer to Loading and Saving Large TIFF Files.

Remarks

Specifies the offset within the current file of the reference page used when saving a page in a TIFF file. If this property is 0, then page 1 is the first page in the file. If this property is not 0, then page 1 is the page that starts at the offset.

The SaveIFD property can be used to speed up the process of appending, replacing or deleting a page inside a TIFF file with many pages.

The page starting at the offset given by this property is treated as page 1. The next page can be replaced by setting the SavePage property to 2 and calling the Save method. To delete the page after the one indicated by SaveIFD, call DeletePage("test.tif", 2).

Due to the organization of TIFF files, SaveIFD can be used to speed up the replacement, deletion and insertion of pages after the offset indicated by SaveIFD. However, to delete the page indicated by SaveIFD, by calling DeletePage("test.tif", 1), LEADTOOLS will have to go through all the pages from the beginning of the file, to get to the page to delete. Consequently, there will be no speed improvement in this situation.

When the current TIF file is no longer needed, this property must be reset to 0, otherwise the processing of any other TIF files will be incorrect.

See Also

Elements:

InfoIFD property, LoadIFD property, DeletePage method

Topics:

Raster Images: Loading and Saving Large TIFF Files