Click or drag to resize

HistogramGetDocumentHistogram Method

Returns a two element array containing the number of black and white pixels in a binary image.

Namespace:  Atalasoft.Imaging.ImageProcessing
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public int[] GetDocumentHistogram()

Return Value

Type: Int32

[Missing <returns> documentation for "M:Atalasoft.Imaging.ImageProcessing.Histogram.GetDocumentHistogram"]

Thrown if the image pixelformat is other than Pixel1bppIndexed.
Thrown if the image is null.
Thrown is the current license is not DotImage Document Imaging.
In a typical binary image, the first pixel value is white, and second is black (known as MinIsWhite). Occassionally this is swapped. Check the palette index color value to be certain.
See Also