Despeckle example for Visual Basic
Note: Also works with Access 95 and 97.
This example automatically removes specks from the bitmap and repaints the image. Use this on a 1-bit bitmap such as a scanned document.
Dim RasterProc As New LEADRasterProcess
Dim lAngle As Long
RasterProc.Despeckle LEADRasterView1.Raster
LEADRasterView1.ForceRepaint