TiffCreateMultiPageFromGdPictureImage Method (GdPictureImaging)
Example 





GdPicture.NET.14 (COM - ActiveX)~GdPicture14_namespace > GdPicture.NET.14 (COM - ActiveX)~GdPicture14.GdPictureImaging : TiffCreateMultiPageFromGdPictureImage Method
GdPicture Image Identifier. The image from which the new multipage tiff image will be created.
Creates a new editable multipage tiff image from a GdPicture Image.
Syntax
'Declaration
 
Public Function TiffCreateMultiPageFromGdPictureImage( _
   ByVal ImageID As Integer _
) As Integer
public int TiffCreateMultiPageFromGdPictureImage( 
   int ImageID
)
public function TiffCreateMultiPageFromGdPictureImage( 
    ImageID: Integer
): Integer; 
public function TiffCreateMultiPageFromGdPictureImage( 
   ImageID : int
) : int;
public: int TiffCreateMultiPageFromGdPictureImage( 
   int ImageID
) 
public:
int TiffCreateMultiPageFromGdPictureImage( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier. The image from which the new multipage tiff image will be created.

Return Value

0: The image could not created. Use the GetStat() method to determine the reason this method failed. Non-zero: GdPicture Image Identifier. The created editable multipage tiff image.
Remarks
Supported formats are listed here: http://www.gdpicture.com/solutions/supported-formats/.
Example
Draw page number on each page of a multipage tiff image
Dim i As Integer
Dim TiffImageID As Integer
Dim PageCount As Integer
Dim oGdPictureImaging As New GdPictureImaging
oGdPictureImaging.TiffOpenMultiPageForWrite(True)
TiffImageID = oGdPictureImaging.TiffCreateMultiPageFromFile("input.tif", True)
Dim ImgTiffCompression As TiffCompression = oGdPictureImaging.GetTiffCompression(ImageID)
PageCount = oGdPictureImaging.TiffGetPageCount(TiffImageID)
For i = 1 To PageCount
   oGdPictureImaging.TiffSelectPage(TiffImageID, i)
   oGdPictureImaging.DrawText(TiffImageID, "Page " & CStr(i) & " / " & CStr(PageCount), 50, 50, 10, FontStyle.FontStyleRegular, Color.Black, "Arial", True)
   'Comment the following method to keep original compression
   'If you do use the following method, use TiffCompression.TiffCompressionCCITT4 or TiffCompression.TiffCompressionCCITT3 for saving
   oGdPictureImaging.ConvertTo1Bpp(TiffImageID)
Next i
oGdPictureImaging.TiffSaveMultiPageToFile(TiffImageID, "input.tif", ImgTiffCompression)
oGdPictureImaging.ReleaseGdPictureImage(TiffImageID)
See Also

Reference

GdPicture.NET.14 (COM - ActiveX)~GdPicture14.GdPictureImaging
GdPictureImaging Members
GetStat Method