LEADTOOLS Medical (Leadtools.MedicalViewer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerMultiCell Class > ConvertAnnotationToRegion Method : ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean) Method



subCellIndex
The zero-based index of the sub-cell that contains the selected annotation object being converted. Pass -1 to convert all sub-cells contained within the cell; pass -2 to convert only the active sub-cell.
combineMode
An enumerated Leadtools.RasterRegionCombineMode value that indicates how to create a region, if one is defined.
deleteAnnotation
true to delete the annotation after creating the region; otherwise, false.

The ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean) Method is available as an add-on to the LEADTOOLS Medical Imaging toolkits.

subCellIndex
The zero-based index of the sub-cell that contains the selected annotation object being converted. Pass -1 to convert all sub-cells contained within the cell; pass -2 to convert only the active sub-cell.
combineMode
An enumerated Leadtools.RasterRegionCombineMode value that indicates how to create a region, if one is defined.
deleteAnnotation
true to delete the annotation after creating the region; otherwise, false.
Converts the selected annotation into a region of interest.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub ConvertAnnotationToRegion( _
   ByVal subCellIndex As Integer, _
   ByVal combineMode As RasterRegionCombineMode, _
   ByVal deleteAnnotation As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerMultiCell
Dim subCellIndex As Integer
Dim combineMode As RasterRegionCombineMode
Dim deleteAnnotation As Boolean
 
instance.ConvertAnnotationToRegion(subCellIndex, combineMode, deleteAnnotation)
C# 
public void ConvertAnnotationToRegion( 
   int subCellIndex,
   RasterRegionCombineMode combineMode,
   bool deleteAnnotation
)
C++/CLI 
public:
void ConvertAnnotationToRegion( 
   int subCellIndex,
   RasterRegionCombineMode combineMode,
   bool deleteAnnotation
) 

Parameters

subCellIndex
The zero-based index of the sub-cell that contains the selected annotation object being converted. Pass -1 to convert all sub-cells contained within the cell; pass -2 to convert only the active sub-cell.
combineMode
An enumerated Leadtools.RasterRegionCombineMode value that indicates how to create a region, if one is defined.
deleteAnnotation
true to delete the annotation after creating the region; otherwise, false.

Example

Remarks

  • This method will work only on the closed shape annotation objects, namely:
    • rectangle annotation.
    • ellipse annotation.
    • hilite annotation.
  • For more information, refer to Working With Annotations.

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.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features