Table of Contents

Class BmpMetadata

Namespace
SixLabors.ImageSharp.Formats.Bmp
Assembly
SixLabors.ImageSharp.dll

Provides Bmp specific metadata information for the image.

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

Constructors

BmpMetadata()

Initializes a new instance of the BmpMetadata class.

public BmpMetadata()

Properties

BitsPerPixel

Gets or sets the number of bits per pixel.

public BmpBitsPerPixel BitsPerPixel { get; set; }

Property Value

BmpBitsPerPixel

ColorTable

Gets or sets the color table, if any.

public ReadOnlyMemory<Color>? ColorTable { get; set; }

Property Value

ReadOnlyMemory<Color>?

InfoHeaderType

Gets or sets the bitmap info header type.

public BmpInfoHeaderType InfoHeaderType { get; set; }

Property Value

BmpInfoHeaderType

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 BmpMetadata that is a deep copy of the current instance.

public BmpMetadata DeepClone()

Returns

BmpMetadata

The BmpMetadata.

FromFormatConnectingMetadata(FormatConnectingMetadata)

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

public static BmpMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)

Parameters

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

Returns

BmpMetadata

The BmpMetadata.

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.