Count image pixels
Visual Basic |
---|
Public Function CountPixels() As Long |
Number of black pixels in image.
VB Comment (Visual Basic) | Copy Code |
---|---|
Public Sub T_CountPixels(ByRef Tools As CiTools) Debug.Print "Pixel Count=" & Tools.CountPixels End Sub |
Code uses ATL COM library
C Comments (C++) | Copy Code |
---|---|
long nPixels; CToolsPtr Tools; Tools = ci.CreateTools(); nPixels = Tools.CountPixels(); // This a comment int i = 3; |