Table of Contents

Class PbmMetadata

Namespace
SixLabors.ImageSharp.Formats.Pbm
Assembly
SixLabors.ImageSharp.dll

Provides PBM specific metadata information for the image.

public class PbmMetadata : IFormatMetadata<PbmMetadata>, IFormatMetadata, IDeepCloneable, IDeepCloneable<PbmMetadata>
Inheritance
PbmMetadata
Implements
Inherited Members

Constructors

PbmMetadata()

Initializes a new instance of the PbmMetadata class.

public PbmMetadata()

Properties

ColorType

Gets or sets the color type.

public PbmColorType ColorType { get; set; }

Property Value

PbmColorType

ComponentType

Gets or sets the data type of the pixel components.

public PbmComponentType ComponentType { get; set; }

Property Value

PbmComponentType

Encoding

Gets or sets the encoding of the pixels.

public PbmEncoding Encoding { get; set; }

Property Value

PbmEncoding

Methods

AfterImageApply<TPixel>(Image<TPixel>, Matrix4x4)

This method is called after a process has been applied to the image.

public void AfterImageApply<TPixel>(Image<TPixel> destination, Matrix4x4 matrix) where TPixel : unmanaged, IPixel<TPixel>

Parameters

destination Image<TPixel>

The destination image .

matrix Matrix4x4

The transformation matrix applied to the image.

Type Parameters

TPixel

The type of pixel format.

DeepClone()

Creates a new PbmMetadata that is a deep copy of the current instance.

public PbmMetadata DeepClone()

Returns

PbmMetadata

The PbmMetadata.

FromFormatConnectingMetadata(FormatConnectingMetadata)

Creates a new instance of the PbmMetadata class from the given FormatConnectingMetadata.

public static PbmMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)

Parameters

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

Returns

PbmMetadata

The PbmMetadata.

GetPixelTypeInfo()

Converts the metadata to a PixelTypeInfo instance.

public PixelTypeInfo GetPixelTypeInfo()

Returns

PixelTypeInfo

The pixel type info.

ToFormatConnectingMetadata()

Converts the metadata to a FormatConnectingMetadata instance.

public FormatConnectingMetadata ToFormatConnectingMetadata()

Returns

FormatConnectingMetadata

The FormatConnectingMetadata.