ClearImage COM Server
CountPixels Method
See Also  Example  Send Feedback
CiTools Object : CountPixels Method

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

© 1992-2011. Inlite Research, Inc. All Rights Reserved.