BitmapStatisticsProvider Class

Contains methods used to retrieve various bitmap statistics.

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

Syntax

C#
public sealed class BitmapStatisticsProvider

Remarks

This class is accessible via the Bitmap.Statistics property. Its main feature is the ability to calculate a bitmap histogram. A 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()() method). Last method is used in Adobe® Photoshop® by default.

Examples

C#
var histogram = bitmap.Statistics.GetSumHistogram();
for (int i = 0; i < histogram.Length; i++)
{
    Console.WriteLine(i + ": " + histogram[i]);
}

Inheritance Hierarchy

System..Object
L Aurigma.GraphicsMill..BitmapStatisticsProvider

Thread Safety

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

See Also

Reference