Table of Contents

Class XbmDetails

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

Details only XBM has, kept in FormatDetails.

public sealed class XbmDetails : FormatDetails
Inheritance
XbmDetails
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

Hotspot

Gets or sets the hotspot, the point a cursor points with, or null if the file has none.

public Point? Hotspot { get; set; }

Property Value

Point?

Name

Gets or sets the name the C identifiers start with, such as "cursor" for cursor_width. The writer writes it back.

public string Name { get; set; }

Property Value

string

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.