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.
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.
For an example, refer to ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean)
- 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7