ImageEn, unit histogrambox |
|
THistogramBox
Properties · Methods · Events · Demos · Examples
Declaration
THistogramBox = class(TCustomControl);
Description
THistogramBox displays a histogram of the colors of an image.
The source of the color information is provided from a
TIEBitmap or a
TImageEnProc component.
| Demos\ImageAnalysis\Histogram\Histogram.dpr |
| Demos\ImageEditing\CompleteEditor\PhotoEn.dpr |
// 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 );
PropertiesMethodsEvents