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

Demo  Demos\ImageAnalysis\Histogram\Histogram.dpr


Example

// Setup
with HistogramBox1 do
begin
  Background := clBtnFace; // Change background color
  Font.Color := clDarkGray; // Set font and chart color to dark 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

Published Property  AttachedImageEnProc
Published Property  Background
Public Property  Bitmap
Public Method  Clear
Published Property  CompBar
Published Property  GrayColor
Published Property  HistogramKind
Published Property  HistogramStyle
Public Property  HistogramAbsXPos
Published Property  Labels
Published Property  MouseInteract
Public Property  MinSelected
Public Property  MaxSelected
Public Property  Scale
Public Property  SelectionColor
Public Property  TruncateLabels
Public Method  UpdateFromBitmap
Public Method  UpdateFromHistogram


Events

Event  OnSelectionChanged
Event  OnSelectionChanging