Table of Contents

Class SunRasterDetails

Namespace
Egami.Formats.Extended.SunRaster
Assembly
Egami.Formats.Extended.dll

Details only Sun raster has, kept in FormatDetails.

public sealed class SunRasterDetails : FormatDetails
Inheritance
SunRasterDetails
Inherited Members

Examples

// What the header said that the pixels do not: PcxDetails, SgiDetails, SunRasterDetails, XbmDetails and XpmDetails.
using Raster image = Raster.Load("arrow.xbm", context);
if (image.Metadata.FormatDetails is XbmDetails xbm)
{
    Console.WriteLine($"{xbm.Name}, hotspot {xbm.Hotspot}");
}

// Writers take the name and hotspot back from the details.
image.Metadata.FormatDetails = new XbmDetails { Name = "pointer", Hotspot = new Point(0, 0) };
image.Save("pointer.xbm");

Properties

Colormap

Gets or sets the colormap, or empty when the file has none.

public ReadOnlyMemory<Rgb8> Colormap { get; set; }

Property Value

ReadOnlyMemory<Rgb8>

Depth

Gets or sets the bits per pixel: 1, 8, 24 or 32.

public int Depth { get; set; }

Property Value

int

RgbOrder

Gets or sets whether 24-bit and 32-bit pixels are stored red first (type 3, RT_FORMAT_RGB) rather than blue first.

public bool RgbOrder { get; set; }

Property Value

bool

Rle

Gets or sets whether the pixels were run-length coded (type 2, RT_BYTE_ENCODED).

public bool Rle { get; set; }

Property Value

bool

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.