IDitheringSessionGetDitheredColor Method

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.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
C#
Color32 GetDitheredColor(
	Color32 origColor,
	int x,
	int y
)

Parameters

origColor  Color32
The original color to be dithered.
x  Int32
The x-coordinate of the pixel to be dithered represented by the specified origColor.
y  Int32
The y-coordinate of the pixel to be dithered represented by the specified origColor.

Return Value

Color32
The dithered color of the specified origColor that may depend on the specified coordinates.

See Also