ImageEn, unit iexColorCurve |
|
TIEColorCurve
Declaration
TIEColorCurve = class(TCustomControl);
Description
Component to display a histogram of colors within an image and allow manipulation 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
Demo
| Demos\ImageEditing\ColorCurve\ColorCurve.dpr |
Example
// Display a form that allows manipulation 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;
Methods and Properties
GeneralDisplayCurve EditingEvents