This example appends an image to the end of a multipage tiff file.
Specify the file name with the FileName property and save it with the AppendTiffImage method. If the file specified by the FileName property is a multi-page Tiff file, it is added to the last page. If it is a single-page Tiff file, the image is added as the second page to create a multi-page Tiff file.
Example Code
The code below appends the image displayed in PictureBox to the
end of a tiff file. The image data is converted to Tiff G4
compression.
Note that any valid image can be used. To insert the image loaded
into the ImageKit control, us null or Nothing.
[Visual Basic.NET]
ImageKit1.File.FileName = "Tiff.tif"
ImageKit1.File.AppendTiffImage(Newtone.ImageKit.SaveFileType.SaveTIFFGroup4,
pictureBox1.Image)
'(If you want to add the image currently
loaded in the ImageKit control, set the second argument to
Nothing)
[Visual C#.NET]
ImageKit1.File.FileName = "Tiff.tif";
ImageKit1.File.AppendTiffImage(Newtone.ImageKit.SaveFileType.SaveTIFFGroup4,
pictureBox1.Image);
//(If you want to add the image
currently loaded in the ImageKit control, set the second argument
to null)