HistoEqualize example for Delphi
This example equalizes the bitmap's histogram and repaints the image.
var
sRet: Smallint;
RasterProc: LEADRasterProcess;
begin
RasterProc:= CreateComObject (CLASS_LEADRasterProcess ) as LEADRasterProcess;
RasterProc.HistoEqualize (LEADRasterView1.Raster);
LEADRasterView1.ForceRepaint (sRet);
end;