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
pixelTypePixelTypeInfoThe pixel type information.
sizeSizeThe size of the image in px units.
metadataImageMetadataThe 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
pixelTypePixelTypeInfoThe pixel type information.
sizeSizeThe size of the image in px units.
metadataImageMetadataThe image metadata.
frameMetadataCollectionIReadOnlyList<ImageFrameMetadata>The collection of image frame metadata.
Properties
Bounds
Gets the bounds of the image.
public Rectangle Bounds { get; }
Property Value
FrameMetadataCollection
Gets the collection of metadata associated with individual image frames.
public IReadOnlyList<ImageFrameMetadata> FrameMetadataCollection { get; }
Property Value
Height
Gets the image height in px units.
public int Height { get; }
Property Value
Metadata
Gets any metadata associated with the image.
public ImageMetadata Metadata { get; }
Property Value
PixelType
Gets information about the image pixels.
public PixelTypeInfo PixelType { get; }
Property Value
Size
Gets the size of the image in px units.
public Size Size { get; }
Property Value
Width
Gets the image width in px units.
public int Width { get; }