Gorgon
Show / Hide Table of Contents

Class GorgonCodecPng

A codec to handle read/writing of PNG files.

Inheritance
object
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>
GorgonCodecPng
Implements
IGorgonImageCodec
IGorgonNamedObject
Inherited Members
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.Codec
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.CodecDescription
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportsBlockCompression
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportsMipMaps
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportsDepth
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportedPixelFormats
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.Save(IGorgonImage, Stream)
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.GetMetaData(Stream)
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.GetMetaData(Stream, IGorgonWicDecodingOptions)
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.GetFrameOffsets(string)
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.GetFrameOffsets(Stream)
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.IsReadable(Stream)
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportsMultipleFrames
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.CanEncode
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.CanDecode
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.CodecCommonExtensions
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.FromStream(Stream, long?)
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.FromFile(string)
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.Save(IGorgonImage, string)
GorgonImageCodec<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.ToString()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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 Source

GorgonCodecPng(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 Source

SupportedPixelFormats

Property to return the supported pixel formats for this codec.

Declaration
public override IReadOnlyList<BufferFormat> SupportedPixelFormats { get; }
Property Value
Type Description
IReadOnlyList<BufferFormat>
Overrides
GorgonCodecWic<GorgonPngEncodingOptions, IGorgonWicDecodingOptions>.SupportedPixelFormats

Implements

IGorgonImageCodec
IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author