You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Saving GdPicture Image > SaveAsTIFF > SaveAsTIFF Method (Integer, String, TiffCompression)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsTIFF Method (Integer, String, TiffCompression)

Saves a GdPicture image as Tagged Image File Format.

C#
public GdPictureStatus SaveAsTIFF(
    int ImageID, 
    String FilePath, 
    TiffCompression Compression
);
Visual Basic
Public Function SaveAsTIFF(
    ByVal ImageID As Integer, 
    ByVal FilePath As String, 
    ByVal Compression As TiffCompression
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
FilePath 
The complete file path to save a GdPicture image.  
Compression 
A member of the TiffCompression enumeration.  
Returns

A member of the GdPictureStatus enumeration.

If the specified GdPicture 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.

How to convert BMP file to Tif file

Dim ImageID As Integer
 
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp")
If ImageID <> 0 Then
   oGdPictureImaging.SaveAsTIFF (ImageID, "image.tif", TiffCompression.TiffCompressionAUTO)
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
End If
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.