Class ImageFrame
- Namespace
- SixLabors.ImageSharp
- Assembly
- SixLabors.ImageSharp.dll
Represents a pixel-agnostic image frame containing all pixel data and ImageFrameMetadata. In case of animated formats like gif, it contains the single frame in a animation. In all other cases it is the only frame of the image.
public abstract class ImageFrame : IConfigurationProvider, IDisposable
- Inheritance
-
ImageFrame
- Implements
- Derived
- Inherited Members
Constructors
ImageFrame(Configuration, int, int, ImageFrameMetadata)
Initializes a new instance of the ImageFrame class.
protected ImageFrame(Configuration configuration, int width, int height, ImageFrameMetadata metadata)
Parameters
configurationConfigurationThe configuration which allows altering default behaviour or extending the library.
widthintThe frame width.
heightintThe frame height.
metadataImageFrameMetadataThe ImageFrameMetadata.
Properties
Configuration
public Configuration Configuration { get; }
Property Value
Height
Gets the height.
public int Height { get; }
Property Value
Metadata
Gets the metadata of the frame.
public ImageFrameMetadata Metadata { get; }
Property Value
Width
Gets the width.
public int Width { get; }
Property Value
Methods
Bounds()
Gets the bounds of the frame.
public Rectangle Bounds()
Returns
Dispose()
public void Dispose()
Dispose(bool)
Disposes the object and frees resources for the Garbage Collector.
protected abstract void Dispose(bool disposing)
Parameters
disposingboolWhether to dispose of managed and unmanaged objects.
Size()
Gets the size of the frame.
public Size Size()