ClearImage 8 Help
ClearBackground Method
See Also  Send Feedback
Inlite.ClearImage Namespace > CiRepair Class : ClearBackground Method






ThrLevel
Set background to white

Syntax

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)
C# 
public int ClearBackground( 
   double ThrLevel
)
Delphi 
public function ClearBackground( 
    ThrLevel: Double
): Integer; 
JScript 
public function ClearBackground( 
   ThrLevel : double
) : int;
Managed Extensions for C++ 
public: int ClearBackground( 
   double ThrLevel
) 
C++/CLI 
public:
int ClearBackground( 
   double ThrLevel
) 

Parameters

ThrLevel

Remarks

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

Requirements

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

See Also

© 2007-2013. Inlite Research, Inc. All Rights Reserved.