Table of Contents

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

TiffBitsPerPixel

BitsPerSample

Gets or sets number of bits per component. Derived from the root frame.

public TiffBitsPerSample BitsPerSample { get; set; }

Property Value

TiffBitsPerSample

ByteOrder

Gets or sets the byte order.

public ByteOrder ByteOrder { get; set; }

Property Value

ByteOrder

Compression

Gets or sets the compression scheme used on the image data. Derived from the root frame.

public TiffCompression Compression { get; set; }

Property Value

TiffCompression

FormatType

Gets or sets the format type.

public TiffFormatType FormatType { get; set; }

Property Value

TiffFormatType

PhotometricInterpretation

Gets or sets the color space of the image data. Derived from the root frame.

public TiffPhotometricInterpretation PhotometricInterpretation { get; set; }

Property Value

TiffPhotometricInterpretation

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

TiffPredictor

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 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

metadata FormatConnectingMetadata

The FormatConnectingMetadata.

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()

Returns

FormatConnectingMetadata

The FormatConnectingMetadata.