Write Multiframe TIFF
TIFF Multiple frames Write Pipeline
Demonstrates how to create a TIFF file with multiple frames.
Сode Snippet
using (var writer = new TiffWriter("WriteMultiframeTiff.tif"))
{
using (var frame1 = new Bitmap("Chicago.jpg"))
{
// You can specify the compression of each frame separately
writer.Compression = CompressionType.Jpeg;
writer.Quality = 85;
Pipeline.Run(frame1 + writer);
}
using (var frame2 = new Bitmap("Copenhagen_RGB.jpg"))
{
writer.Compression = CompressionType.Lzw;
Pipeline.Run(frame2 + writer);
}
}
Input
Chicago.jpg
Copenhagen_RGB.jpg
Output
WriteMultiframeTiff.tif
DownloadFor AI-assisted development: Download Graphics Mill Code Samples XML Catalog