Class ImageInfo
Contains information about the image including dimensions, pixel type information and additional metadata
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public class ImageInfo : object
Constructors
| Improve this Doc 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, Nullable<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. |
Nullable<IReadOnlyList<ImageFrameMetadata>> | frameMetadataCollection | The collection of image frame metadata. |
Properties
| Improve this Doc 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 |
---|---|
Int32 |
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 |
---|---|
Int32 |