ClearImage COM Server Send comments on this topic.
CountPixels Method
See Also  Example

Description

Count image pixels

Syntax

Visual Basic
Public Function CountPixels() As Long

Return Type

Number of black pixels in image.

Example

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;

See Also