Perform color dithering for the specified image.

Namespace:  AForge.Imaging.ColorReduction
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Bitmap Apply(
	Bitmap sourceImage
)

Parameters

sourceImage
Type: System.Drawing..::.Bitmap
Source image to do color dithering for.

Return Value

Returns color dithered image. See ColorTable for information about format of the result image.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionUnsupported pixel format of the source image. It must 24 or 32 bpp color image.

See Also