Table of Contents

Class TiffFrameMetadata

Namespace
SixLabors.ImageSharp.Formats.Tiff
Assembly
SixLabors.ImageSharp.dll

Provides Tiff specific metadata information for the frame.

public class TiffFrameMetadata : IFormatFrameMetadata<TiffFrameMetadata>, IFormatFrameMetadata, IDeepCloneable, IDeepCloneable<TiffFrameMetadata>
Inheritance
TiffFrameMetadata
Implements
Inherited Members

Constructors

TiffFrameMetadata()

Initializes a new instance of the TiffFrameMetadata class.

public TiffFrameMetadata()

Properties

BitsPerPixel

Gets or sets the bits per pixel.

public TiffBitsPerPixel BitsPerPixel { get; set; }

Property Value

TiffBitsPerPixel

BitsPerSample

Gets or sets number of bits per component.

public TiffBitsPerSample BitsPerSample { get; set; }

Property Value

TiffBitsPerSample

Compression

Gets or sets the compression scheme used on the image data.

public TiffCompression Compression { get; set; }

Property Value

TiffCompression

EncodingHeight

Gets or sets the encoding height.

public int EncodingHeight { get; set; }

Property Value

int

EncodingWidth

Gets or sets the encoding width.

public int EncodingWidth { get; set; }

Property Value

int

InkSet

Gets or sets the set of inks used in a separated (Separated) image.

public TiffInkSet? InkSet { get; set; }

Property Value

TiffInkSet?

LocalColorTable

Gets or sets the local color table, if any.

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

Property Value

ReadOnlyMemory<Color>?

PhotometricInterpretation

Gets or sets the color space of the image data.

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.

public TiffPredictor Predictor { get; set; }

Property Value

TiffPredictor

Methods

AfterFrameApply<TPixel>(ImageFrame<TPixel>, ImageFrame<TPixel>, Matrix4x4)

This method is called after a process has been applied to the image frame.

public void AfterFrameApply<TPixel>(ImageFrame<TPixel> source, ImageFrame<TPixel> destination, Matrix4x4 matrix) where TPixel : unmanaged, IPixel<TPixel>

Parameters

source ImageFrame<TPixel>

The source image frame.

destination ImageFrame<TPixel>

The destination image frame.

matrix Matrix4x4

The transformation matrix applied to the image frame.

Type Parameters

TPixel

The type of pixel format.

DeepClone()

Creates a new TiffFrameMetadata that is a deep copy of the current instance.

public TiffFrameMetadata DeepClone()

Returns

TiffFrameMetadata

The TiffFrameMetadata.

FromFormatConnectingFrameMetadata(FormatConnectingFrameMetadata)

Creates a new instance of the TiffFrameMetadata class from the given FormatConnectingFrameMetadata.

public static TiffFrameMetadata FromFormatConnectingFrameMetadata(FormatConnectingFrameMetadata metadata)

Parameters

metadata FormatConnectingFrameMetadata

The FormatConnectingFrameMetadata.

Returns

TiffFrameMetadata

The TiffFrameMetadata.

ToFormatConnectingFrameMetadata()

Converts the metadata to a FormatConnectingFrameMetadata instance.

public FormatConnectingFrameMetadata ToFormatConnectingFrameMetadata()

Returns

FormatConnectingFrameMetadata

The FormatConnectingFrameMetadata.