ImageEn, unit histogrambox |
|
THistogramBox
Declaration
THistogramBox = class(TCustomControl);
Description
THistogramBox can be attached to a
TImageEnProc component from which it gets information to compute and display the color channels histogram.

Demo
| Demos\ImageAnalysis\Histogram\Histogram.dpr |
Example
// Setup
with HistogramBox1 do
begin
Background := clBtnFace; // Change background color to a theming color
GrayColor := clWindowText; // Change line color to a theming color
Font.Color := clGrayText; // Change font and chart color to gray
MouseInteract := mhSelectValue; // Allow selection of a single value
HistogramKind := [ hkRed, hkGreen, hkBlue ]; // Histogram to show RGB levels
HistogramStyle := hsFilledLines; // Show a filled line graph instead of bars
end;
// Display histogram of colors in current image
HistogramBox1.UpdateFromBitmap( ImageEnView1.IEBitmap );
Methods and Properties
Events