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

Description

Find first object

Syntax

Visual Basic
Public Function FirstObject() As CiObject

Return Type

Nothing or 0 when no more objects are available.

Remarks

!MISSING PHRASE '_COLORFAIL'!

Example

Itreate all objects into individual images
VB Exampe (Visual Basic)Copy Code
Public Sub T_IterateObjects(ByRef Tools As CiTools)
    Dim Obj As CiObject
    Set Obj = Tools.FirstObject    
    Do While Not Obj Is Nothing
      ' TODO:  Do something with Obj using Object properties
      Debug.Print  _
        "   Rect lt=" & Obj.Rect.left & ":" & Obj.Rect.top & _
        "  rb=" & Obj.Rect.right & ":" & Obj.Rect.bottom & _
        "   Pixels=" & Obj.pixels & "   Intervals=" & Obj.Intervals
       Set Obj = Tools.NextObject
    Loop
End Sub

See Also

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