Gorgon
Show / Hide Table of Contents

Interface IGorgonWicEncodingOptions

Provides options used when encoding a IGorgonImage for persistence.

Inherited Members
IGorgonImageCodecEncodingOptions.SaveAllFrames
IGorgonImageCodecEncodingOptions.Options
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 Source

Dithering

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.

| Edit this page View Source

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
| Edit this page View Source

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

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