GdPicture.NET Reference Guide
TiffMerge2Files Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : TiffMerge2Files Method
The file path of the first image file to merge.
The file path of the second image file to merge.
The file path of the destination TIFF image file.
A member of the TiffCompression enumeration. The resulting TIFF compression scheme to be used.
Merges two image files according to their file paths. The result is saved as a multipage TIFF image file to a file path you have specified.
Syntax

Parameters

FilePath1
The file path of the first image file to merge.
FilePath2
The file path of the second image file to merge.
FileDest
The file path of the destination TIFF image file.
Compression
A member of the TiffCompression enumeration. The resulting TIFF compression scheme to be used.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK. We strongly recommend always checking this status first.
Remarks
Supported input document formats are listed here.

Be aware that if you are applying CCITT3 or CCITT4 compression scheme, the source images can only be 1bpp, otherwise the LZW compression scheme is used.

Example
How to merge two image files into a resulting multipage TIFF image file.
Dim caption As String = "Example: TiffMerge2Files"
Using oImage As GdPictureImaging = New GdPictureImaging()
    If oImage.TiffMerge2Files("file1.tif", "file2.jpg", "destination.tiff", TiffCompression.TiffCompressionAUTO) = GdPictureStatus.OK Then
        MessageBox.Show("Done!", caption)
    Else
        MessageBox.Show("Error!    status: " + oImage.GetStat().ToString(), caption)
    End If
End Using
string caption = "Example: TiffMerge2Files";
using (GdPictureImaging oImage = new GdPictureImaging())
{
    if (oImage.TiffMerge2Files("file1.tif", "file2.jpg", "destination.tiff", TiffCompression.TiffCompressionAUTO) == GdPictureStatus.OK)
        MessageBox.Show("Done!", caption);
    else
        MessageBox.Show("Error!    status: " + oImage.GetStat().ToString(), caption);
}
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
TiffMergeFiles Method
TiffMergeFileList Method