Class GorgonCodecJpeg
A codec to handle read/writing of JPEG files.
Inheritance
GorgonCodecJpeg
Inherited Members
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public sealed class GorgonCodecJpeg : GorgonCodecWic<GorgonJpegEncodingOptions, IGorgonWicDecodingOptions>, IGorgonImageCodec, IGorgonNamedObject
Remarks
This codec will read and write lossy compression files using the Joint Photographics Experts Group (JPEG) format.
This codec supports the following pixel formats:
- B8G8R8X8_UNorm
- B8G8R8A8_UNorm (Alpha channel is ignored)
- R8G8B8A8_UNorm (Alpha channel is ignored)
important
This codec requires the Windows Imaging Components (WIC) to be installed for the operating system.
Constructors
| Edit this page View SourceGorgonCodecJpeg(GorgonJpegEncodingOptions)
Initializes a new instance of the GorgonCodecJpeg class.
Declaration
public GorgonCodecJpeg(GorgonJpegEncodingOptions encodingOptions = null)
Parameters
Type | Name | Description |
---|---|---|
GorgonJpegEncodingOptions | encodingOptions | [Optional] Options to use when encoding a JPEG image. |
Properties
| Edit this page View SourceImageQuality
Property to set or return the quality of an image compressed with lossy compression.
Declaration
public float ImageQuality { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
Use this property to control the fidelity of an image compressed with lossy compression. 0.0f will give the lowest quality and 1.0f will give the highest.
SupportedPixelFormats
Property to return the supported pixel formats for this codec.
Declaration
public override IReadOnlyList<BufferFormat> SupportedPixelFormats { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<BufferFormat> |