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 exclude some channels from this sum.

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

Syntax

Visual Basic
Public Function GetSumHistogram ( _
	channels As Boolean() _
) As Histogram
C#
public Histogram GetSumHistogram(
	bool[] channels
)

Parameters

channels

Type: System.Boolean []

Array of flags specifying what channels to apply effect at. If array item is true, calculation will be done for the channel with appropriate index. Otherwise this channel is skipped.

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