GammaCorrect example for Delphi
This example applies a 2.2 gamma correction and repaints the image.
var
sRet: Smallint;
RasterProc: LEADRasterProcess;
begin
RasterProc:= CreateComObject (CLASS_LEADRasterProcess ) as LEADRasterProcess;
RasterProc.GammaCorrect (LEADRasterView1.Raster, 220);
LEADRasterView1.ForceRepaint (sRet);
end;