Leadtools.MedicalViewer Requires Medical Imaging license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class > ConvertAnnotationToRegion Method : ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean) Method



subCellIndex
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 RasterRegionCombineMode value that indicates how to create a region, if one is defined.
deleteAnnotation
true to delete the annotation after creating the region, false otherwise.
Converts the selected annotation into a region of interest.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub ConvertAnnotationToRegion( _
   ByVal subCellIndex As Integer, _
   ByVal combineMode As RasterRegionCombineMode, _
   ByVal deleteAnnotation As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
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
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 RasterRegionCombineMode value that indicates how to create a region, if one is defined.
deleteAnnotation
true to delete the annotation after creating the region, false otherwise.

Example

For an example, refer to ConvertAnnotationToRegion

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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