TiffInsertPageFromFile Method

See Also     Examples     Applies To

Inserts a new page from file at the given position an editable multipage tiff image. Page has to be a number smaller or equal than the current number of pages available in the multipage tiff image.

Syntax

object.TiffInsertPageFromFile (nImageID, nPosition, sFilePath)

The TiffInsertPageFromFile syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nImageID Required. Long. GdPicture Image handle. The editable multipage tiff image in which the page will be inserted.
nPosition Required. Long. The position to add the new page. Must be a value from 1 to the current number of pages available in the multipage tiff image.
sFilePath Required. String. The path of the image to append within the editable multipage tiff image.

Returns

Long. GdPictureStatus

Remarks

This function can only be used with an editable multipage tiff image.
To check if an image is an editable multipage tiff image you can use the TiffIsEditableMultiPage() function.
To save modifications brought to the multipage tiff image you need to use the TiffSaveMultiPageToFile() function.
Supported formats are BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PFM, PGM, RPPM, RPGM, RPBM, PCX.
Redistributing the optional gdimgplug.dll library you will also be able to read XPM, XBM, WBMP, TGA, SGI, RAW, PICT, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.

Category

Multipage TIFF Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.