ClearImage .NET API
ClearBackground Method (ImageEditor)





Inlite.ClearImageNet Namespace > ImageEditor Class : ClearBackground Method
Background threshold level (range 0-100)
Set background to white
Syntax
'Declaration
 
Public Sub ClearBackground( _
   ByVal threshold As System.Double _
) 
'Usage
 
Dim instance As ImageEditor
Dim threshold As System.Double
 
instance.ClearBackground(threshold)
public void ClearBackground( 
   System.double threshold
)
public procedure ClearBackground( 
    threshold: System.Double
); 
public function ClearBackground( 
   threshold : System.double
);
public:
void ClearBackground( 
   System.double threshold
) 

Parameters

threshold
Background threshold level (range 0-100)
Remarks

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.

See Also

Reference

ImageEditor Class
ImageEditor Members