Table of Contents

Class PcxDetails

Namespace
Egami.Formats.Extended.Pcx
Assembly
Egami.Formats.Extended.dll

Details only PCX has, kept in FormatDetails.

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

BitsPerPixel

Gets or sets the bits per pixel in each plane: 1, 2, 4 or 8.

public int BitsPerPixel { get; set; }

Property Value

int

Palette

Gets or sets the palette of an indexed image, or empty for 24-bit and 32-bit images.

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

Property Value

ReadOnlyMemory<Rgb8>

Planes

Gets or sets the number of color planes: 1 to 4.

public int Planes { get; set; }

Property Value

int

Version

Gets or sets the version byte: 0 (PC Paintbrush 2.5), 2 or 3 (2.8), 4 (for Windows) or 5 (3.0 and later).

public int Version { get; set; }

Property Value

int

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.