TiffSaveAsNativeMultiPage Method

See Also     Examples     Applies To

Stores the native GdPicture image as first page of a new multipage TIFF file.
You will be able to append new page to the created file using the TiffAddToNativeMultiPage() function.
Warning: To access to the data of the new created image file you need first to save & close it using the TiffCloseNativeMultiPage(), then reload it using the CreateImageFromFile() function.

Syntax

object.TiffSaveAsNativeMultiPage (sFilePath, nModeCompression)

The TiffSaveAsNativeMultiPage syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
sFilePath Required. String. The new native multipage file full path.
nModeCompression Optional. Long. Default value is 2. Specifies the type of compression 6:None, 5:RLE, 4:CCITT4, 3:CCITT3, 2:LZW.

Returns

Long. GdPictureStatus

Remarks

If success, the native image will be considered too as native multipage tiff image. Therefore, the native image should now be deleted using the TiffCloseNativeMultiPage() function (see exemple).

Category

Multipage TIFF Functions

Visual Basic Sample

How to create multipage tif image from several existing image files:


Dim nImageID As Long

nImageID = object.CreateImageFromFile( "image1.jpg")
object.TiffSaveAsNativeMultiPage ("multipage.tif")

nImageID = object.CreateImageFromFile("image2.jpg")
object.TiffAddToNativeMultipage (nImageID)
object.CloseImage (nImageID)

nImageID = object.CreateImageFromFile("image3.jpg")
object.TiffAddToNativeMultipage (nImageID)
object.CloseImage (nImageID)

object.TiffCloseNativeMultiPage






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.