ClearImage COM Server
Trim Method
See Also  Example  Send Feedback
Pixels
Number of pixels to trim from each side
Direction
CiTools Object : Trim Method

Description

Trim image

Syntax

Visual Basic
Public Sub Trim( _
   ByVal Pixels As Long, _
   ByVal Direction As EMorphDirections _
) 

Parameters

Pixels
Number of pixels to trim from each side
Direction
ValueDescription
ciMorphAllNeighboursModify all neighboring pixels
ciMorphDiagModify pixels located diagonally
ciMorphHorzModify pixels located to the left and right
ciMorphHorzAndVertModify pixels located left, right, up or down
ciMorphVertModify pixels located up and down

Remarks

!MISSING PHRASE '_COLORFAIL'!

Example

Morphological Functions
VB Example (Visual Basic)Copy Code
Public Sub T_Morph(ByRef Tools As CiTools)
  Tools.Fatten 2, ciMorphAllNeighbours
  Tools.Trim 4, ciMorphVert
  Tools.Outline
  Tools.Skeleton
End Sub

See Also

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