Table of Contents

Class ImageInfo

Namespace
SixLabors.ImageSharp
Assembly
SixLabors.ImageSharp.dll

Contains information about the image including dimensions, pixel type information and additional metadata

public class ImageInfo
Inheritance
ImageInfo
Inherited Members

Constructors

ImageInfo(PixelTypeInfo, Size, ImageMetadata?)

Initializes a new instance of the ImageInfo class.

public ImageInfo(PixelTypeInfo pixelType, Size size, ImageMetadata? metadata)

Parameters

pixelType PixelTypeInfo

The pixel type information.

size Size

The size of the image in px units.

metadata ImageMetadata

The image metadata.

ImageInfo(PixelTypeInfo, Size, ImageMetadata?, IReadOnlyList<ImageFrameMetadata>?)

Initializes a new instance of the ImageInfo class.

public ImageInfo(PixelTypeInfo pixelType, Size size, ImageMetadata? metadata, IReadOnlyList<ImageFrameMetadata>? frameMetadataCollection)

Parameters

pixelType PixelTypeInfo

The pixel type information.

size Size

The size of the image in px units.

metadata ImageMetadata

The image metadata.

frameMetadataCollection IReadOnlyList<ImageFrameMetadata>

The collection of image frame metadata.

Properties

Bounds

Gets the bounds of the image.

public Rectangle Bounds { get; }

Property Value

Rectangle

FrameMetadataCollection

Gets the collection of metadata associated with individual image frames.

public IReadOnlyList<ImageFrameMetadata> FrameMetadataCollection { get; }

Property Value

IReadOnlyList<ImageFrameMetadata>

Height

Gets the image height in px units.

public int Height { get; }

Property Value

int

Metadata

Gets any metadata associated with the image.

public ImageMetadata Metadata { get; }

Property Value

ImageMetadata

PixelType

Gets information about the image pixels.

public PixelTypeInfo PixelType { get; }

Property Value

PixelTypeInfo

Size

Gets the size of the image in px units.

public Size Size { get; }

Property Value

Size

Width

Gets the image width in px units.

public int Width { get; }

Property Value

int