ImageEn, unit iexColorCurve

TIEColorCurve.AssignSource

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.

Note: If the PixelFormat is not ie24RGB, ie32RGB or ie48RGB it will be set to to ie24RGB

Example

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