Class FormattedImage
A class encapsulating an image with a particular file encoding.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class FormattedImage : IDisposableProperties
| Improve this Doc View SourceEncoder
Gets or sets the encoder.
Declaration
public IImageEncoder Encoder { get; set; }Property Value
| Type | Description | 
|---|---|
| IImageEncoder | 
Format
Gets or sets the format.
Declaration
public IImageFormat Format { get; set; }Property Value
| Type | Description | 
|---|---|
| IImageFormat | 
Image
Gets the image.
Declaration
public Image<Rgba32> Image { get; }Property Value
| Type | Description | 
|---|---|
| Image<Rgba32> | 
Methods
| Improve this Doc View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()Load(Configuration, Stream)
Loads the specified source.
Declaration
public static FormattedImage Load(Configuration configuration, Stream source)Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration. | 
| Stream | source | The source. | 
Returns
| Type | Description | 
|---|---|
| FormattedImage | The FormattedImage. | 
Save(Stream)
Saves image to the specified destination stream.
Declaration
public void Save(Stream destination)Parameters
| Type | Name | Description | 
|---|---|---|
| Stream | destination | The destination stream. |