ConvertAnnotationToRegion Method

Summary
Converts the selected annotation into a region of interest.
Syntax
C#
VB
C++
public void ConvertAnnotationToRegion( 
   int subCellIndex, 
   RasterRegionCombineMode combineMode, 
   bool deleteAnnotation 
) 
  
Public Overloads Sub ConvertAnnotationToRegion( _ 
   ByVal subCellIndex As Integer, _ 
   ByVal combineMode As RasterRegionCombineMode, _ 
   ByVal deleteAnnotation As Boolean _ 
)  
            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.

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.
Example

For an example, refer to ConvertAnnotationToRegion(Int32,RasterRegionCombineMode,Boolean)

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.