Table of Contents

Class PngFormat

Namespace
SixLabors.ImageSharp.Formats.Png
Assembly
SixLabors.ImageSharp.dll

Registers the image encoders, decoders and mime type detectors for the png format.

public sealed class PngFormat : IImageFormat<PngMetadata, PngFrameMetadata>, IImageFormat<PngMetadata>, IImageFormat
Inheritance
PngFormat
Implements
Inherited Members

Properties

DefaultMimeType

Gets the default mimetype that the image format uses

public string DefaultMimeType { get; }

Property Value

string

FileExtensions

Gets the file extensions this image format commonly uses.

public IEnumerable<string> FileExtensions { get; }

Property Value

IEnumerable<string>

Instance

Gets the shared instance.

public static PngFormat Instance { get; }

Property Value

PngFormat

MimeTypes

Gets all the mimetypes that have been used by this image format.

public IEnumerable<string> MimeTypes { get; }

Property Value

IEnumerable<string>

Name

Gets the name that describes this image format.

public string Name { get; }

Property Value

string

Methods

CreateDefaultFormatFrameMetadata()

Creates a default instance of the format frame metadata.

public PngFrameMetadata CreateDefaultFormatFrameMetadata()

Returns

PngFrameMetadata

The PngFrameMetadata.

CreateDefaultFormatMetadata()

Creates a default instance of the format metadata.

public PngMetadata CreateDefaultFormatMetadata()

Returns

PngMetadata

The PngMetadata.