Enum TiffExtraSample
What an extra sample is, from the ExtraSamples tag.
public enum TiffExtraSample
Fields
Associated = 1Associated (premultiplied) alpha (1).
Unassociated = 2Unassociated (straight) alpha (2).
Unspecified = 0Unspecified data (0), which Egami drops with a warning.
Examples
using Raster page = Raster.Load("scan.tif");
TiffDetails tiff = (TiffDetails)page.Metadata.FormatDetails!;
Console.WriteLine($"page {tiff.PageIndex}: {tiff.Photometric}, {tiff.BitsPerSample}-bit, {tiff.Compression}, {tiff.ByteOrder}, {tiff.Layout}");
Console.WriteLine(tiff.TileWidth is int tile ? $"tiles of {tile}" : $"{tiff.RowsPerStrip} rows a strip");
// Tags Egami does not map are kept as they were read.
foreach (TiffTag tag in tiff.OtherTags)
{
Console.WriteLine($"tag {tag.Id}: {tag.Count} × {tag.Type}");
}