Class PngFormat
Registers the image encoders, decoders and mime type detectors for the png format.
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Png
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class PngFormat : IImageFormat<PngMetadata, PngFrameMetadata>, IImageFormat<PngMetadata>, IImageFormat
Properties
| Edit this page View SourceDefaultMimeType
Gets the default mimetype that the image format uses
Declaration
public string DefaultMimeType { get; }
Property Value
Type | Description |
---|---|
string |
FileExtensions
Gets the file extensions this image format commonly uses.
Declaration
public IEnumerable<string> FileExtensions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Instance
Gets the shared instance.
Declaration
public static PngFormat Instance { get; }
Property Value
Type | Description |
---|---|
PngFormat |
MimeTypes
Gets all the mimetypes that have been used by this image format.
Declaration
public IEnumerable<string> MimeTypes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Name
Gets the name that describes this image format.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceCreateDefaultFormatFrameMetadata()
Creates a default instance of the format frame metadata.
Declaration
public PngFrameMetadata CreateDefaultFormatFrameMetadata()
Returns
Type | Description |
---|---|
PngFrameMetadata | The PngFrameMetadata. |
CreateDefaultFormatMetadata()
Creates a default instance of the format metadata.
Declaration
public PngMetadata CreateDefaultFormatMetadata()
Returns
Type | Description |
---|---|
PngMetadata | The PngMetadata. |