Count image pixels
Visual Basic |
---|
Public Function CountPixels() As Long |
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