ClearImage COM API
CountPixels Method
CiTools Object : CountPixels Method
Description
Count image pixels
Syntax
Visual Basic
Public Function CountPixels() As Long
Return Type
The number of black pixels on object.Image.
Example
Sub CountPixels(imageFile As String)
    Dim ci As New CiServer
    Dim Tools As CiTools: Set Tools = ci.CreateTools
    Tools.Image.Open imageFile
    Debug.Print "Pixel Count=" & Tools.CountPixels
End Sub
See Also

CiTools Object  | CiTools Members