Class SunRasterFormat
Sun raster, the rasterfile format of SunOS: a 32-byte big-endian header, an optional colormap, then rows of 1, 8, 24 or 32 bits, plain or run-length coded. Registered with WithSunRaster(EgamiContext).
public static class SunRasterFormat
- Inheritance
-
SunRasterFormat
- Inherited Members
Examples
// One format at a time: each has its own method and its own FormatInfo.
EgamiContext context = EgamiContext.Default.WithSgi().WithSunRaster();
using (FileStream output = File.Create("duck.sgi"))
{
image.Save(output, SgiFormat.Info);
}
RasterInfo info = Raster.Probe("duck.sgi", context);
Console.WriteLine($"{info.Format.Name} {info.Width}×{info.Height} {info.Layout.ChannelOrder}");
Properties
Info
Gets the format's registration: name, MIME type, extensions, signature, reader and writer.
public static FormatInfo Info { get; }