Class FarbfeldFormat
Farbfeld, suckless.org's lossless format: "farbfeld", the width and height as big-endian 32-bit numbers, then 16-bit big-endian RGBA pixels, row by row. Registered with WithFarbfeld(EgamiContext).
public static class FarbfeldFormat
- Inheritance
-
FarbfeldFormat
- 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; }