GetHistogram method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short GetHistogram (short iChannel);

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 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.

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