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

Description

Find first object

Syntax

Visual Basic
Public Function FirstObject() As CiObject

Return Type

Nothing or 0 when no more objects are available.

Remarks

This method generates an error if Image is not bi-tonal.

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