Returns the number of pixels of a specified color within the current image or image area.
'Declaration
Public Function ColorCount( _
ByVal As Color _
) As Long
'Usage
Dim instance As Processor
Dim color As Color
Dim value As Long
value = instance.ColorCount(color)
Parameters
- color
- A System.Drawing.Color specified. This parameter stores four, 8-bit components: alpha, red, green, and blue, respectively.
Return Value
A long value that represents the count of pixels of the specified color parameter.