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
ColorTable
Gets or sets the color table, if any.
public ReadOnlyMemory<Color>? ColorTable { get; set; }
Property Value
InfoHeaderType
Gets or sets the bitmap info header type.
public BmpInfoHeaderType InfoHeaderType { get; set; }
Property Value
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
destinationImage<TPixel>The destination image .
matrixMatrix4x4The transformation matrix applied to the image.
Type Parameters
TPixelThe 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
metadataFormatConnectingMetadata
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()