ConvertAnnotationToRegion Method

Summary
Converts the selected annotation into a region of interest.
Syntax
C#
C++/CLI
public void ConvertAnnotationToRegion( 
   int subCellIndex, 
   RasterRegionCombineMode combineMode, 
   bool deleteAnnotation 
) 
            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.
Requirements

Target Platforms

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

Leadtools.MedicalViewer Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.