Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapStatisticsProvider.GetSumHistogram Method (Int32)

Calculates and returns a histogram built from luminosity of the single channel of the pixel.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Function GetSumHistogram ( _
	channel As Integer _
) As Histogram
C#
public Histogram GetSumHistogram(
	int channel
)

Parameters

channel

Type: System.Int32

A channel number to build histogram for.

Return Value

An array which contains bitmap histogram.

Examples

Visual Basic
Dim histogram As Aurigma.GraphicsMill.Histogram = _
 bitmap.Statistics.GetSumHistogram(False)

For i As Integer = 0 To histogram.Length - 1
    Console.WriteLine(i & ": " & histogram(i))
Next
C#
Aurigma.GraphicsMill.Histogram histogram =
    bitmap.Statistics.GetSumHistogram(false);

for (int i = 0; i < histogram.Length; i++)
{
    Console.WriteLine(i + ": " + histogram[i]);
}

See Also

Reference