Table of Contents

Class XbmFormat

Namespace
Egami.Formats.Extended.Xbm
Assembly
Egami.Formats.Extended.dll

XBM, the X Window System's one-bit bitmap: C source with the width and height as #define lines and the bits as an array, black where set. Registered with WithXbm(EgamiContext).

public static class XbmFormat
Inheritance
XbmFormat
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, extension, signature, reader and writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo