AnnConvert method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnConvert(HANNOBJECT hContainer, int nConvert)

Delphi Syntax

AnnConvert (hContainer: HANNOBJECT; nConvert: L_INT): L_INT

Overview

Refer to Implementing Annotations.

Remarks

Use this method to convert back and forth between container coordinates and client coordinates

The number of elements in the ClientPointX, ClientPointY, AnnContainerPointX and AnnContainerPointY arrays must be AT LEAST equal to the value in the PointsCount property.

When nConvert is ANNCONVERT_TO_CONTAINER, the ClientPointX and ClientPointY arrays must contain valid entries. If this method returns successfully, ContainerPointX and ContainerPointY will be updated with the converted points.

When nConvert is ANNCONVERT_TO_CLIENT, the ContainerPointX and ContainerPointY arrays must contain valid entries. If this method returns successfully, ClientPointX and ClientPointY will be updated with the converted points.

See Also

Elements:

ClientPointX property, ClientPointY property, AnnContainerPointX property, AnnContainerPointY property, PointsCount property, AnnCreateItem method, AnnCut method, AnnGetContainer method, AnnGetTopContainer method, AnnInsert method, AnnRemove method

Topics:

Annotations: Object Manipulation

 

Annotations (Document/Medical only): Implementing Automation

 

Annotations (Document/Medical only): Creating and Deleting Annotations

 

Displaying and Manipulating Annotation Objects