Class XpmFormat
XPM, the X PixMap format (version 3): C source holding an array of strings, the size and color count, a color table keyed by one or more characters, then a string of characters per row. Registered with WithXpm(EgamiContext).
public static class XpmFormat
- Inheritance
-
XpmFormat
- 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; }