IDitheringSession Interface

Represents a disposable dithering session returned by the IDitherer.Initialize method that is used to dither the result of a quantizing session for a specific IReadableBitmapData source.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.2.0
C#
public interface IDitheringSession : IDisposable
Implements
IDisposable

Properties

IsSequential Gets whether this ditherer allows only sequential processing (line by line). Even returning does not guarantee that every pixel will be queried. It just enforces that queried rows are processed sequentially.

Methods

GetDitheredColor Gets the dithered color of the specified origColor that may depend on the specified coordinates. The returned color should be quantized by the IQuantizingSession passed to the IDitherer.Initialize method, which was used to create this IDitheringSession instance.

See Also