Table of Contents

Class SgiFormat

Namespace
Egami.Formats.Extended.Sgi
Assembly
Egami.Formats.Extended.dll

SGI, Silicon Graphics' image format (.rgb, .sgi): a 512-byte header, then one to four channels of 8-bit or 16-bit samples stored as separate planes of bottom-up rows, plain or run-length coded. Registered with WithSgi(EgamiContext).

public static class SgiFormat
Inheritance
SgiFormat
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 types, extensions, signature, reader and writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo