Enum TiffLayout
Classic TIFF, with 32-bit offsets and a 4 GB limit, or BigTIFF, with 64-bit offsets.
public enum TiffLayout
Fields
Auto = 2Classic TIFF unless the uncompressed pixel bytes pass 4 GB, then BigTIFF.
Big = 1BigTIFF (version 43), which some older readers cannot open.
Classic = 0Classic TIFF (version 42). Saving throws before writing anything when the file could pass 4 GB.
Examples
// Each pixel type is written at its own depth: 16-bit color stays 16-bit. Deflate with the predictor is the default.
photo.Save("duck.tif");
// Tiles, LZW, BigTIFF, or the smallest exact form the pixels allow.
photo.Save("tiled.tif", new TiffWriterOptions { Compression = TiffCompression.Lzw, TileSize = 256, Layout = TiffLayout.Auto });
photo.Save("small.tif", new TiffWriterOptions { Reduce = true });
// JPEG inside TIFF: RGB is written as YCbCr 4:2:0 with the tables shared by every strip.
photo.Save("photo.tif", new TiffWriterOptions { Compression = TiffCompression.Jpeg, Quality = 90 });