Class TiffMetadata
- Namespace
- SixLabors.ImageSharp.Formats.Tiff
- Assembly
- SixLabors.ImageSharp.dll
Provides Tiff specific metadata information for the image.
public class TiffMetadata : IFormatMetadata<TiffMetadata>, IFormatMetadata, IDeepCloneable, IDeepCloneable<TiffMetadata>
- Inheritance
-
TiffMetadata
- Implements
- Inherited Members
Constructors
TiffMetadata()
Initializes a new instance of the TiffMetadata class.
public TiffMetadata()
Properties
BitsPerPixel
Gets or sets the bits per pixel. Derived from the root frame.
public TiffBitsPerPixel BitsPerPixel { get; set; }
Property Value
BitsPerSample
Gets or sets number of bits per component. Derived from the root frame.
public TiffBitsPerSample BitsPerSample { get; set; }
Property Value
ByteOrder
Gets or sets the byte order.
public ByteOrder ByteOrder { get; set; }
Property Value
Compression
Gets or sets the compression scheme used on the image data. Derived from the root frame.
public TiffCompression Compression { get; set; }
Property Value
FormatType
Gets or sets the format type.
public TiffFormatType FormatType { get; set; }
Property Value
PhotometricInterpretation
Gets or sets the color space of the image data. Derived from the root frame.
public TiffPhotometricInterpretation PhotometricInterpretation { get; set; }
Property Value
Predictor
Gets or sets a mathematical operator that is applied to the image data before an encoding scheme is applied. Derived from the root frame.
public TiffPredictor Predictor { 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 TiffMetadata that is a deep copy of the current instance.
public TiffMetadata DeepClone()
Returns
- TiffMetadata
The TiffMetadata.
FromFormatConnectingMetadata(FormatConnectingMetadata)
Creates a new instance of the TiffMetadata class from the given FormatConnectingMetadata.
public static TiffMetadata FromFormatConnectingMetadata(FormatConnectingMetadata metadata)
Parameters
metadataFormatConnectingMetadata
Returns
- TiffMetadata
The TiffMetadata.
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()