ImageEn, unit iexColorCurve |
|
TIEColorCurve
Properties · Methods · Events · Demos · Examples
Declaration
TIEColorCurve = class(TCustomControl);
Description
TIEColorCurve displays a histogram of the colors of an image, and allows adjustment using a color curve.
Generally a TIEColorCurve will be attached to a
TImageEnView component to display a preview of the current curve (by setting
PreviewImageEnView).
The following actions are available when editing a color curve:
◼Left-click outside the curve to add a new curve point
◼Left-click on a curve point to drag it to a new position
◼Right-click on a curve point to remove it
Note:
◼Color curve editing is also available to the user in the
Image Processing dialog
◼The
pixel format of the image should be ie24RGB
| Demos\ImageEditing\ColorCurve\ColorCurve.dpr |
// Display a form that allows adjustment of the colors of an image
// Assign our image to the color component
dlgCurve2.IEColorCurve1.AssignSource( ImageEnView1.IEBitmap );
// Show form, and if user clicks OK assign that curve to our image
if dlgCurve2.ShowModal = mrOK then
begin
dlgCurve2.IEColorCurve1.ApplyCurve( ImageEnView1.IEBitmap );
ImageEnView1.Update();
end;
General
Display
Curve Editing