Click or drag to resize
Accord.NET (logo)

ErrorDiffusionColorDitheringApply Method (UnmanagedImage)

Perform color dithering for the specified image.

Namespace:  Accord.Imaging.ColorReduction
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
public Bitmap Apply(
	UnmanagedImage sourceImage
)
Request Example View Source

Parameters

sourceImage
Type: Accord.ImagingUnmanagedImage
Source image to do color dithering for.

Return Value

Type: Bitmap
Returns color dithered image. See ColorTable for information about format of the result image.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionUnsupported pixel format of the source image. It must 24 or 32 bpp color image.
See Also