ClearImage COM Server Send comments on this topic.
Trim Method
See Also  Example
Pixels
Number of pixels to trim from each side
Direction

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
ciMorphHorzModify pixels located to the left and right
ciMorphVertModify pixels located up and down
ciMorphDiagModify pixels located diagonally
ciMorphHorzAndVertModify pixels located left, right, up or down
ciMorphAllNeighboursModify all neighboring pixels

Remarks

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

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