GdPicture image identifier.
Confidence threshold in the range [0 - 100]. Suggested value is 99.5.
Example





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / IsBlank Method / IsBlank(Int32,Single) Method

IsBlank(Int32,Single) Method

In This Topic
Detects if a GdPicture image or on an area of a GdPicture image defined by SetROI() method is blank.
Syntax
'Declaration

 

Public Overloads Function IsBlank( _

   ByVal ImageID As Integer, _

   ByVal Confidence As Single _

) As Boolean
public bool IsBlank( 

   int ImageID,

   float Confidence

)
public function IsBlank( 

    ImageID: Integer;

    Confidence: Single

): Boolean; 
public function IsBlank( 

   ImageID : int,

   Confidence : float

) : boolean;
public: bool IsBlank( 

   int ImageID,

   float Confidence

) 
public:

bool IsBlank( 

   int ImageID,

   float Confidence

) 

Parameters

ImageID
GdPicture image identifier.
Confidence
Confidence threshold in the range [0 - 100]. Suggested value is 99.5.

Return Value

True if it is a blank image, else False.
Remarks
Use the GetStat() method to check if this method has completed successfully.
Example
Removing the blank pages from a tiff document.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())

{

    // LoadInMemory parameter is set to true in order to be able to update the input file.

    int imageID = gdpictureImaging.TiffCreateMultiPageFromFile("multipage.tif", true);

    int pageCount = gdpictureImaging.TiffGetPageCount(imageID);

    int pageNo = 1;

    while (pageNo <= pageCount)

    {

        gdpictureImaging.TiffSelectPage(imageID, pageNo);

        if (gdpictureImaging.IsBlank(imageID, 95))

        {

            gdpictureImaging.TiffDeletePage(imageID, pageNo);

            pageCount--;

        }

        else

        {

            pageNo++;

        }

    }

    gdpictureImaging.TiffSaveMultiPageToFile(imageID, "multipage.tif", TiffCompression.TiffCompressionAUTO);

    gdpictureImaging.ReleaseGdPictureImage(imageID);

}
See Also