Class GorgonCodecPng
A codec to handle read/writing of PNG files.
Inheritance
GorgonCodecPng
Inherited Members
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public sealed class GorgonCodecPng : GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>, IGorgonImageCodec, IGorgonNamedObject
Remarks
This codec will read and write lossless compressed files using the Portable Network Graphics (PNG) format.
This codec supports the following pixel formats:
R8G8B8A8_UNorm
B8G8R8A8_UNorm
B8G8R8X8_UNorm
R16G16B16A16_UNorm
important
This codec requires the Windows Imaging Components (WIC) to be installed for the operating system.
Constructors
| Edit this page View SourceGorgonCodecPng(GorgonPngEncodingOptions)
Initializes a new instance of the GorgonCodecPng class.
Declaration
public GorgonCodecPng(GorgonPngEncodingOptions encodingOptions = null)
Parameters
Type | Name | Description |
---|---|---|
GorgonPngEncodingOptions | encodingOptions | [Optional] Options used when encoding the image data. |
Properties
| Edit this page View SourceSupportedPixelFormats
Property to return the supported pixel formats for this codec.
Declaration
public override IReadOnlyList<BufferFormat> SupportedPixelFormats { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<BufferFormat> |