Halftone example for Delphi
This example halftones the bitmap with a horizontal pattern and repaints the image.
var
sRet: Smallint;
RasterProc: LEADRasterProcess;
begin
RasterProc:= CreateComObject (CLASS_LEADRasterProcess ) as LEADRasterProcess;
RasterProc.Halftone (LEADRasterView1.Raster, HALFTONE_PRINT, 0);
LEADRasterView1.ForceRepaint (sRet);
end;