Class MetadataExtensions
Extension methods for the ImageMetadata type.
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class MetadataExtensions
Methods
| Improve this Doc View SourceGetBmpMetadata(ImageMetadata)
Gets the bmp format specific metadata for the image.
Declaration
public static BmpMetadata GetBmpMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
BmpMetadata | The BmpMetadata. |
GetGifMetadata(ImageFrameMetadata)
Gets the gif format specific metadata for the image frame.
Declaration
public static GifFrameMetadata GetGifMetadata(this ImageFrameMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageFrameMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
GifFrameMetadata | The GifFrameMetadata. |
GetGifMetadata(ImageMetadata)
Gets the gif format specific metadata for the image.
Declaration
public static GifMetadata GetGifMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
GifMetadata | The GifMetadata. |
GetJpegMetadata(ImageMetadata)
Gets the jpeg format specific metadata for the image.
Declaration
public static JpegMetadata GetJpegMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
JpegMetadata | The JpegMetadata. |
GetPngMetadata(ImageMetadata)
Gets the png format specific metadata for the image.
Declaration
public static PngMetadata GetPngMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
PngMetadata | The PngMetadata. |
GetTgaMetadata(ImageMetadata)
Gets the tga format specific metadata for the image.
Declaration
public static TgaMetadata GetTgaMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
TgaMetadata | The TgaMetadata. |