Help Center

DitherTypefunction

Identifies the available algorithms for dithering when a bitmap is converted.

Graphicsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Parameters

NameDescription
DitherTypeNone0
DitherTypeSolid1
DitherTypeOrdered4x42
DitherTypeOrdered8x83
DitherTypeOrdered16x164
DitherTypeSpiral4x45
DitherTypeSpiral8x86
DitherTypeDualSpiral4x47
DitherTypeDualSpiral8x88
DitherTypeErrorDiffusion9
DitherTypeMax10

Description

Identifies the available algorithms for dithering when a bitmap is converted.

Calling the GdipBitmapConvertFormat function of a Bitmap object changes the pixel format of that Bitmap. If the conversion results in a reduced bit depth (fewer bits per pixel), then certain colors in the original bitmap will be simulated by a dither (checkerboard) pattern made up of colors that are available in the new pixel format. The members of the DitherType enumeration identify the algorithms available for performing this dithering.

Reference