This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapStatisticsProvider Class

This class contains methods used by Bitmap to retrieve various bitmap statistics.

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

Syntax

Visual Basic
Public Class BitmapStatisticsProvider _
	Inherits LockableObject
C#
public class BitmapStatisticsProvider : LockableObject

Remarks

Main feature of this class is possibility to calculate bitmap histogram. Histogram is an array of values that specify how much pixels has a luminosity (or other value that specifies pixel brightness level) equal to appropriate array index. It can be either calculated as histogram of bitmap luminosity (GetLuminosityHistogram() method), or histogram of the channels sum (GetSumHistogram(Boolean) method). Last method is used in Adobe® Photoshop® by default.

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]);
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.LockableObject
L Aurigma.GraphicsMill.BitmapStatisticsProvider

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

Object Model





See Also

Reference