You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Standalone Functions > IsBitonal > IsBitonal Method (Integer, Integer)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.IsBitonal Method (Integer, Integer)

Returns True if a GdPicture image or the area defined by SetROI() function is bitonal (black & white). This function accepts a threshold parameter.

C#
public Boolean IsBitonal(
    int ImageID, 
    int Threshold
);
Visual Basic
Public Function IsBitonal(
    ByVal ImageID As Integer, 
    ByVal Threshold As Integer
) As Boolean
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Threshold 
Threshold between 0 (max confidence) and 765 (min confidence). A value near than 50 is highly suggested.  
Returns

True if it is a bitonal image, else False.

Use the GetStat() function to check if this function has completed successfully.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.