Set background to white
Visual Basic |
---|
Public Sub ClearBackground( _ Optional ByVal ThrLevel As Double = 30 _ ) |
Scanning of documents with white background as grayscale and color typically produces off-white background on the scanned image. This method sets all pixels brighter than the specified threshold to pure white to bring visually quality closer to the original document.
Recommended ThrLevel is 30. Higher number causes more pixels to be set to white.