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
ComponentType
Gets or sets the data type of the pixel components.
public PbmComponentType ComponentType { get; set; }
Property Value
Encoding
Gets or sets the encoding of the pixels.
public PbmEncoding Encoding { 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 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
metadataFormatConnectingMetadata
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()