ImageEn, unit iexColorCurve |
|
TIEColorCurve.AssignSource
Declaration
procedure AssignSource(Source: TObject);
Description
Assigns a source TBitmap or
TIEBitmap to the color curve so its colors are displayed as a histogram.
// 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;