GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / IsGrayscale Method
GdPicture image identifier.





In This Topic
IsGrayscale Method (GdPictureImaging)
In This Topic
Determines whether a GdPicture image or the area defined by SetROI() method is Gray or not. This method uses a linear formula to determine the color intent. To obtain more accurate result the ColorDetection() method should be used instead.
Syntax
'Declaration
 
Public Function IsGrayscale( _
   ByVal ImageID As Integer _
) As Boolean
public bool IsGrayscale( 
   int ImageID
)
public function IsGrayscale( 
    ImageID: Integer
): Boolean; 
public function IsGrayscale( 
   ImageID : int
) : boolean;
public: bool IsGrayscale( 
   int ImageID
) 
public:
bool IsGrayscale( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

True if it is a grayscale image, else False.
Remarks

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

This method uses a linear formula to determine the color intent. To obtain more accurate result the ColorDetection() method should be used instead.

This method requires the Image Documents component to run.

See Also