HistoContrast example for Delphi

This example applies a histogram contrast to the bitmap and repaints the image.

var
   sRet: Smallint;
   RasterProc: LEADRasterProcess;
begin
   RasterProc:= CreateComObject (CLASS_LEADRasterProcess ) as LEADRasterProcess;
   RasterProc.HistoContrast (LEADRasterView1.Raster, 300);
   LEADRasterView1.ForceRepaint (sRet);
end;