Class ImageInfo
Contains information about the image including dimensions, pixel type information and additional metadata
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public class ImageInfo
Constructors
| Edit this page View SourceImageInfo(PixelTypeInfo, Size, ImageMetadata?)
Initializes a new instance of the ImageInfo class.
Declaration
public ImageInfo(PixelTypeInfo pixelType, Size size, ImageMetadata? metadata)
Parameters
Type | Name | Description |
---|---|---|
PixelTypeInfo | pixelType | The pixel type information. |
Size | size | The size of the image in px units. |
ImageMetadata | metadata | The image metadata. |
ImageInfo(PixelTypeInfo, Size, ImageMetadata?, IReadOnlyList<ImageFrameMetadata>?)
Initializes a new instance of the ImageInfo class.
Declaration
public ImageInfo(PixelTypeInfo pixelType, Size size, ImageMetadata? metadata, IReadOnlyList<ImageFrameMetadata>? frameMetadataCollection)
Parameters
Type | Name | Description |
---|---|---|
PixelTypeInfo | pixelType | The pixel type information. |
Size | size | The size of the image in px units. |
ImageMetadata | metadata | The image metadata. |
IReadOnlyList<ImageFrameMetadata> | frameMetadataCollection | The collection of image frame metadata. |
Properties
| Edit this page View SourceBounds
Gets the bounds of the image.
Declaration
public Rectangle Bounds { get; }
Property Value
Type | Description |
---|---|
Rectangle |
FrameMetadataCollection
Gets the collection of metadata associated with individual image frames.
Declaration
public IReadOnlyList<ImageFrameMetadata> FrameMetadataCollection { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ImageFrameMetadata> |
Height
Gets the image height in px units.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
Metadata
Gets any metadata associated with the image.
Declaration
public ImageMetadata Metadata { get; }
Property Value
Type | Description |
---|---|
ImageMetadata |
PixelType
Gets information about the image pixels.
Declaration
public PixelTypeInfo PixelType { get; }
Property Value
Type | Description |
---|---|
PixelTypeInfo |
Size
Gets the size of the image in px units.
Declaration
public Size Size { get; }
Property Value
Type | Description |
---|---|
Size |
Width
Gets the image width in px units.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |