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. |
GetPbmMetadata(ImageMetadata)
Gets the pbm format specific metadata for the image.
Declaration
public static PbmMetadata GetPbmMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
PbmMetadata | The PbmMetadata. |
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. |
GetTiffMetadata(ImageFrameMetadata)
Gets the tiff format specific metadata for the image frame.
Declaration
public static TiffFrameMetadata GetTiffMetadata(this ImageFrameMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageFrameMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
TiffFrameMetadata | The TiffFrameMetadata. |
GetTiffMetadata(ImageMetadata)
Gets the tiff format specific metadata for the image.
Declaration
public static TiffMetadata GetTiffMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
TiffMetadata | The TiffMetadata. |
GetWebpMetadata(ImageMetadata)
Gets the webp format specific metadata for the image.
Declaration
public static WebpMetadata GetWebpMetadata(this ImageMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
ImageMetadata | metadata | The metadata this method extends. |
Returns
Type | Description |
---|---|
WebpMetadata | The WebpMetadata. |