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 (Boolean)

Calculates and returns a histogram built from the sum of each channel luminosities of the pixel. You can include or exclude alpha channel from this sum.

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

Syntax

Visual Basic
Public Function GetSumHistogram ( _
	useAlpha As Boolean _
) As Histogram
C#
public Histogram GetSumHistogram(
	bool useAlpha
)

Parameters

useAlpha

Type: System.Boolean

Flag that specify whether to include alpha channel into the histogram calculation.

Return Value

Histogram class instance that contains sum histogram of this bitmap.

Remarks

This histogram type is used in Adobe® Photoshop®.

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