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

Histogram Constructor (BitmapData, Boolean[])

Creates new Histogram instance and builds the histogram for specified bitmap data. Histogram is based on average of pixel channels values (sum of these values divided at channels number). You can specify what channels to include into this sum via channels argument.

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

Syntax

Visual Basic
Public Sub New ( _
	bitmapData As BitmapData, _
	channels As Boolean() _
)
C#
public Histogram(
	BitmapData bitmapData,
	bool[] channels
)

Parameters

bitmapData

Type: Aurigma.GraphicsMill.BitmapData

BitmapData class instance to build the histogram for.
channels

Type: System.Boolean []

Array of flags specifying what channels to use when calculating the histogram. If array item is true, the channel with appropriate index is used. Otherwise this channel is skipped.

See Also

Reference