Class SgiDetails
Details only SGI has, kept in FormatDetails.
public sealed class SgiDetails : FormatDetails
- Inheritance
-
SgiDetails
- Inherited Members
Examples
// What the header said that the pixels do not: PcxDetails, SgiDetails, SunRasterDetails, XbmDetails and XpmDetails.
using Raster image = Raster.Load("arrow.xbm", context);
if (image.Metadata.FormatDetails is XbmDetails xbm)
{
Console.WriteLine($"{xbm.Name}, hotspot {xbm.Hotspot}");
}
// Writers take the name and hotspot back from the details.
image.Metadata.FormatDetails = new XbmDetails { Name = "pointer", Hotspot = new Point(0, 0) };
image.Save("pointer.xbm");
Properties
BytesPerChannel
Gets or sets the bytes per sample: 1 or 2.
public int BytesPerChannel { get; set; }
Property Value
Channels
Gets or sets the number of channels the file stores: 1 (gray), 2 (gray and alpha), 3 (RGB) or 4 (RGBA).
public int Channels { get; set; }
Property Value
Name
Gets or sets the image name from the header, up to 79 ASCII characters. The writer writes it back.
public string Name { get; set; }
Property Value
Rle
Gets or sets whether the rows were run-length coded.
public bool Rle { get; set; }
Property Value
Methods
Copy()
Returns a deep copy.
public override FormatDetails Copy()
Returns
- FormatDetails
The copy.