Computes the image histogram.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool GetHistogram(
	FIBITMAP dib,
	int[] histo,
	FREE_IMAGE_COLOR_CHANNEL channel
)
Visual Basic (Declaration)
Public Shared Function GetHistogram ( _
	dib As FIBITMAP, _
	histo As Integer(), _
	channel As FREE_IMAGE_COLOR_CHANNEL _
) As Boolean
Visual C++
public:
static bool GetHistogram(
	FIBITMAP dib, 
	array<int>^ histo, 
	FREE_IMAGE_COLOR_CHANNEL channel
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
histo
Type: array< System..::.Int32 >[]()[]
Array of integers with a size of 256.
channel
Type: FreeImageAPI..::.FREE_IMAGE_COLOR_CHANNEL
Channel to compute from.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also