Visual Basic (Declaration) | |
---|---|
Public Function ClearBackground( _ ByVal ThrLevel As Double _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CiRepair Dim ThrLevel As Double Dim value As Integer value = instance.ClearBackground(ThrLevel) |
Parameters
- ThrLevel
Scanning pages with white background scanned as grayscale and color typically produces off-white background. ClearBackground sets all pixels brighter than specified threshold to pure white. This makes image visually closer to the original document.
Method applies only to grayscale and color image.
ThrLevel = 0!UNRECOGNISED ELEMENT TYPE ' threshold does not change an image
ThrLevel = 100'! sets all image pixels to white
ThrLevel = 30% is recomended
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family