ImageEn, unit iexColorCurve

TIEColorCurve.ApplyCurve

TIEColorCurve.ApplyCurve


Declaration

procedure ApplyCurve(Bitmap: TIEBitmap);


Description

Assigns the curve that the user has specified to a TIEBitmap.
If Bitmap is valid, its colors will be adjusted by the curve.
If Bitmap is invalid (height and width of 0), it be assigned the bitmap specified in AssignSource and adjusted by the curve.


Example 1

// 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;


Example 2

// Replace image in ImageEnView1 with that adjusted by IEColorCurve1
ImageEnView1.LockUpdate();
ImageEnView1.IEBitmap.Clear();
IEColorCurve1.ApplyCurve( ImageEnView1.IEBitmap );
ImageEnView1.UnlockUpdate();