Hi, I’m trying concatenate multiple tiff, with this code, but this method throws an exception format in Image.Load(…). What can I do? Thank you, very much!
string MyDir = @“C:\G3”;
//Create a copy of original image to avoid any alteration
File.Copy(MyDir + “00874076.tif”, MyDir + “008740762.tif”, true);
//Create an instance of TiffImage and load the copied destination image
using (TiffImage image = (TiffImage)Aspose.Imaging.Image.Load(MyDir + “00874076.tif”))
{
//Create an instance of TiffImage and load the source image
using (TiffImage image1 = (TiffImage)Aspose.Imaging.Image.Load(MyDir + “008740762.tif”))
{
// Create an instance of TIffFrame and copy active frame of source image
TiffFrame frame = TiffFrame.CopyFrame(image1.ActiveFrame);
// Add copied frame to destination image
image.AddFrame(frame);
// save the image with changes.
image.Save();
}
}