Full frame gif support
Contents
[
Hide
]
Aspose.Imaging supports full-framed export from gif file format to another multi-pages formats.
Example of export from Gif to full-frame Tiff fileformat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Aspose.Imaging; | |
using Aspose.Imaging.FileFormats.Apng; | |
using Aspose.Imaging.FileFormats.Png; | |
using Aspose.Imaging.FileFormats.Tiff.Enums; | |
using Aspose.Imaging.ImageOptions; | |
using Aspose.Imaging.Sources; | |
using System.IO; | |
string templatesFolder = @"c:\Users\USER\Downloads\templates\"; | |
string dataDir = templatesFolder; | |
using (Image image = Image.Load(dataDir + "template.gif")) | |
{ | |
image.Save(dataDir + "result.tiff", new TiffOptions(TiffExpectedFormat.TiffDeflateRgb) { MultiPageOptions = new MultiPageOptions(new IntRange(0, 1)), FullFrame = true }); | |
image.Save(dataDir + "result2.tiff", new TiffOptions(TiffExpectedFormat.TiffDeflateRgb) { MultiPageOptions = new MultiPageOptions(new IntRange(0, 1)) }); | |
} | |
File.Delete(dataDir + "result.tiff"); | |
File.Delete(dataDir + "result2.tiff"); |
The result file after saving:
|
|
---|---|
Download result |
Example of export from Gif to full-frame Pdf fileformat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Aspose.Imaging; | |
using Aspose.Imaging.FileFormats.Apng; | |
using Aspose.Imaging.FileFormats.Png; | |
using Aspose.Imaging.FileFormats.Tiff.Enums; | |
using Aspose.Imaging.ImageOptions; | |
using Aspose.Imaging.Sources; | |
using System.IO; | |
string templatesFolder = @"c:\Users\USER\Downloads\templates\"; | |
string dataDir = templatesFolder; | |
using (Image image = Image.Load(dataDir + "template.gif")) | |
{ | |
image.Save(dataDir + "result.pdf", | |
new PdfOptions() { MultiPageOptions = new MultiPageOptions(new IntRange(0, 1)), FullFrame = true }); | |
} | |
File.Delete(dataDir + "result.pdf"); |
The result file after saving:
|
|
---|---|
Download result |