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 : IDisposable
Constructors
| Improve this Doc View SourceFormattedImage(Image, IImageFormat)
Initializes a new instance of the FormattedImage class.
Declaration
public FormattedImage(Image image, IImageFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| Image | image | The image. |
| IImageFormat | format | The format. |
Properties
| 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 decoded image.
Declaration
public Image Image { get; }
Property Value
| Type | Description |
|---|---|
| Image |
Methods
| Improve this Doc View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
TryGetExifOrientation(out UInt16)
Gets the EXIF orientation metata for the FormattedImage.
Declaration
public bool TryGetExifOrientation(out ushort value)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt16 | value | When this method returns, contains the value parsed from decoded EXIF metadata; otherwise,
the default value for the type of the |
Returns
| Type | Description |
|---|---|
| Boolean | true if the FormattedImage contains EXIF orientation metadata
for |