CountColor Method (GdPictureImaging)
In This Topic
Counts the number of pixel that have a specific color on a GdPicture image or into an area of a
GdPicture image defined by SetROI() method.
Syntax
'Declaration
Public Function CountColor( _
ByVal As Integer, _
ByVal As Color _
) As Double
public double CountColor(
int ,
Color
)
public function CountColor(
: Integer;
: Color
): Double;
public function CountColor(
: int,
: Color
) : double;
public: double CountColor(
int ,
Color
)
public:
double CountColor(
int ,
Color
)
Parameters
- ImageID
- GdPicture image identifier.
- PickColor
- Color to count. A suitable color value can be obtained by using the ARGB() method.
Return Value
The number of pixel that match the color.
See Also