ClearImage .NET API
IsBlankImage Method (CiRepair)





Inlite.ClearImage Namespace > CiRepair Class : IsBlankImage Method
Set to 0
Set to 0.0
Set to 0.0
Is image blank
Syntax
'Declaration
 
Public Function IsBlankImage( _
   ByVal reserved0 As System.Integer, _
   ByVal reserved1 As System.Double, _
   ByVal reserved2 As System.Double _
) As System.Boolean
'Usage
 
Dim instance As CiRepair
Dim reserved0 As System.Integer
Dim reserved1 As System.Double
Dim reserved2 As System.Double
Dim value As System.Boolean
 
value = instance.IsBlankImage(reserved0, reserved1, reserved2)
public System.bool IsBlankImage( 
   System.int reserved0,
   System.double reserved1,
   System.double reserved2
)
public function IsBlankImage( 
    reserved0: System.Integer;
    reserved1: System.Double;
    reserved2: System.Double
): System.Boolean; 
public function IsBlankImage( 
   reserved0 : System.int,
   reserved1 : System.double,
   reserved2 : System.double
) : System.boolean;
public:
System.bool IsBlankImage( 
   System.int reserved0,
   System.double reserved1,
   System.double reserved2
) 

Parameters

reserved0
Set to 0
reserved1
Set to 0.0
reserved2
Set to 0.0
Remarks

The image is not blank if it has black pixels after ignoring the following image elements:   

Margins - Black pixels inside image margins. 

for sides longer than 7 inches the margin is 1 inch wide
for sides between 5 and 7 inches the margin is 0.5 inches  wide
for smaller sides the margin  size is 0 inch     

Noise -   Black objects of 5 x 5 pixels and smaller

Object -  A single object smaller than 0.5 x 0.5 inch in size

 

The image should have correct values for HorzDpi and VertDpi properties for proper calculations of margins and object size.

If this method returns false for a blank image, the image has other elements than listed above.  Preprocessing this image using CiTools and CiRepair methods could remove such elements.
See Also

Reference

CiRepair Class
CiRepair Members