Class GorgonJpegEncodingOptions
Options used when encoding an image to a stream as a JPEG file.
Inherited Members
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public sealed class GorgonJpegEncodingOptions : IGorgonWicEncodingOptions, IGorgonImageCodecEncodingOptions
Constructors
| Edit this page View SourceGorgonJpegEncodingOptions()
Initializes a new instance of the GorgonJpegEncodingOptions class.
Declaration
public GorgonJpegEncodingOptions()
Properties
| Edit this page View SourceDpiX
Property to set or return the horizontal dots-per-inch for the encoded image.
Declaration
public double DpiX { get; set; }
Property Value
Type | Description |
---|---|
double |
Remarks
This information is metadata only, no action is taken with this value.
The default value is 72.
DpiY
Property to set or return the vertical dots-per-index for the encoded image.
Declaration
public double DpiY { get; set; }
Property Value
Type | Description |
---|---|
double |
Remarks
This information is metadata only, no action is taken with this value.
The default value is 72.
ImageQuality
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. A value of 0.0f will give the lowest quality and 1.0f will give the highest.
Options
Property to return the list of options available to the codec.
Declaration
public IGorgonOptionBag Options { get; }
Property Value
Type | Description |
---|---|
IGorgonOptionBag |