Despeckle example for Visual J++

This example automatically removes specks from the bitmap and repaints the image. Use this on a 1-bit bitmap such as a scanned document.

LEAD1.Despeckle();
LEAD1.ForceRepaint();