GetHistogram method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int GetHistogram (int iChannel);

Delphi Syntax

GetHistogram (iChannel:Integer): Integer;

Overview

Refer to Using Histograms.

Remarks

Updates the array that charts how many times each intensity level occurs in the bitmap. This method can chart red, green, and blue separately or together.

You can access the array values using the HistogramTable property. Intensity levels range from 0 to the value of HistogramTableSize property – 1. The resulting array items are indexed by intensity value. The value of each item is the number of occurrences of the intensity level.

This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method supports signed data images.

See Also

Elements:

HistogramTable property, HistogramTableSize property, GetHistogramGray method

Topics:

Raster Images: Using Histograms

 

Raster Images: Where the Region Preempts the Bitmap

 

Changing Brightness and Contrast