ClearImage COM Server
ExtractObject Method
See Also  Example  Send Feedback
Object
Object returned by FirstObject or NextObject methods
CiTools Object : ExtractObject Method

Description

Extract an object into new image

Syntax

Visual Basic
Public Function ExtractObject( _
   ByVal Object As CiObject _
) As CiImage

Parameters

Object
Object returned by FirstObject or NextObject methods

Remarks

!MISSING PHRASE '_COLORFAIL'!

Example

Extract all objects into individual images
VB Exampe (Visual Basic)Copy Code
Public Sub T_ExtractObjects(ByRef Tools As CiTools)
    Dim Obj As CiObject
    Dim ObjImg As CiImage   '  Image of extracted object
    Set Obj = Tools.FirstObject    
    Do While Not Obj Is Nothing
       Set ObjImg = Tools.ExtractObject(Obj)
      ' TODO:  Do something with ObjImg  For Example:
      '  ObjImg.Append FileName
      Set Obj = Tools.NextObject
    Loop
End Sub

See Also

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