Scanner ActiveX Control

BlankPageIsBlank

 

Return true if the current page is blank page (depend on confidence value ). The iConfidence parameter is Maximum percentage of blank pixels.
Normally you may pass 99 to iConfidence parameter, if the page is blank page and does not have a lot of noise, it will return true.

For some condition, the page contains some black border or noises, if you call BlankPageIsBlank(99), it will return false.  you may call BlankPageGetConfidence method to get the Confidence value first. e.g. return the value is 96.212. Finally you may call BlankPageIsBlank(96), it will return true.

Public Function BlankPageIsBlank( _
   ByVal iConfidence As double) As Bool

 

Parameter

iConfidence
   the Maximum percentage of blank pixels. The range from 0-100.

 

Return Value

Return true if the page is blank page
Return false if the page is not blank page


Example

   

Visual Basic Syntax
If Scanner1.BlankPageIsBlank(99) Then
   MsgBox "This page is Blank page"
Else
   MsgBox "This page is not a Blank page"
End If