SaveAsTIFF Method

See Also     Examples     Applies To

Saves the native GdPicture image as Tagged Image File Format.

Syntax

object.SaveAsTIFF (sFilePath, nModeCompression)

The SaveAsTIFF 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 complete file path to save the native GdPicture image.
nModeCompression Optional. Long. Default value is 2. Specifies type of compression 6:None, 5:RLE, 4:CCITT4, 3:CCITT3, 2:LZW.

Returns

Long. GdPictureStatus

Remarks

For GdPicture Light & GdPicture Pro only:
If the native image is an editable multipage tiff image, this function will save only the selected page.
To save an editable multipage tiff image use the TiffSaveMultiPageToFile() function.

Category

Save and Close Image

Visual Basic Sample

How to convert BMP file to Tif file


Dim nImageID As Long

nImageID = object.CreateImageFromFile("image.bmp")
If nImageID <> 0 Then
   object.SaveAsTIFF ("image.tif")
   object.CloseImage (nImageID)
End If






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.