Invert example for Delphi

This example inverts the bitmap's colors and repaints the image.

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