ClearImage .NET API
IsBlankImage Method (ImageEditor)





Inlite.ClearImageNet Namespace > ImageEditor Class : IsBlankImage Method
Is image blank
Syntax
'Declaration
 
Public Function IsBlankImage() As System.Boolean
'Usage
 
Dim instance As ImageEditor
Dim value As System.Boolean
 
value = instance.IsBlankImage()
public System.bool IsBlankImage()
public function IsBlankImage(): System.Boolean; 
public function IsBlankImage() : System.boolean;
public:
System.bool IsBlankImage(); 
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

ImageEditor Class
ImageEditor Members