Interface IGorgonWicEncodingOptions
Provides options used when encoding a IGorgonImage for persistence.
Inherited Members
Namespace: Gorgon.Graphics.Imaging.Codecs
Assembly: Gorgon.Graphics.Imaging.dll
Syntax
public interface IGorgonWicEncodingOptions : IGorgonImageCodecEncodingOptions
Remarks
This particular interface provides common WIC (Windows Imaging Component) specific options for use when encoding an image across multiple image formats.
Properties
| Edit this page View SourceDithering
Property to set or return the type of ImageDithering to use.
Declaration
ImageDithering Dithering { get; set; }
Property Value
Type | Description |
---|---|
ImageDithering |
Remarks
This flag is used to determine which type of dithering algorithm should be used when converting the bit depth for a pixel format to a lower bit depth. If the pixel format of the image is supported natively by the codec, then this value will be ignored.
With dithering applied, the image will visually appear closer to the original by using patterns to simulate a greater number of colors.
DpiX
Property to set or return the horizontal dots-per-inch for the encoded image.
Declaration
double DpiX { get; set; }
Property Value
Type | Description |
---|---|
double |
DpiY
Property to set or return the vertical dots-per-index for the encoded image.
Declaration
double DpiY { get; set; }
Property Value
Type | Description |
---|---|
double |