LEADTOOLS MRC (Leadtools.Mrc assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
MrcEnumerateSegmentsInfo Delegate
See Also 
Leadtools.Mrc Namespace : MrcEnumerateSegmentsInfo Delegate



segmentHandle
An Instance of MrcSegmenter class.
data
An Instance of MrcSegmentData that you can use to access a variable or structure containing data that your delegate method needs. This gives you a way to receive data indirectly from the method that uses this delegate method.
id
ID of the segment being enumerated.
Handles each enumerated segment. This delegate is passed as a parameter to the MrcSegmenter.EnumerateSegments method.

Syntax

Visual Basic (Declaration) 
Public Delegate Function MrcEnumerateSegmentsInfo( _
   ByVal segmentHandle As IntPtr, _
   ByVal data As MrcSegmentData, _
   ByVal id As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As New MrcEnumerateSegmentsInfo(AddressOf HandlerMethod)
C# 
public delegate bool MrcEnumerateSegmentsInfo( 
   IntPtr segmentHandle,
   MrcSegmentData data,
   int id
)
C++/CLI 
public delegate bool MrcEnumerateSegmentsInfo( 
   IntPtr segmentHandle,
   MrcSegmentData data,
   int id
)

Parameters

segmentHandle
An Instance of MrcSegmenter class.
data
An Instance of MrcSegmentData that you can use to access a variable or structure containing data that your delegate method needs. This gives you a way to receive data indirectly from the method that uses this delegate method.
id
ID of the segment being enumerated.

Example

Refer to MrcSegmenter example.

Remarks

This delegate method is called for each segment enumerated by the MrcSegmenter.EnumerateSegments method. The delegate receives segment data, segment ID and any other associated user data for each segment.

This delegate can be used when performing automatic or manual segmentation.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Mrc requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features