AnnGetPointX method (ILEADRasterAnnotation)
short AnnGetPointX(long hObject, ILEADRasterVariant * pVarPoint); | |
Overview |
Refer to Implementing Annotations. |
Remarks
Fills the pVarPoint parameter with an array of floating-point numbers for the X coordinates of the vertices (corner points) of the specified annotation object. You can use this method with the AnnGetPointY method to get the vertices of the object. The points that define the vertices are relative to the bitmap in the control. The unit of measure is determined by the ScaleMode property.
AnnGetPointX works only with the following types of objects:
ANN_OBJECT_POINTER
ANN_OBJECT_FREEHAND
ANN_OBJECT_LINE
ANN_OBJECT_POLYGON
ANN_OBJECT_POLYLINE
Ann_OBJECT_TEXTPOINTER
You can use the AnnGetType method to identify the object type. You can use the AnnGetPointCount method to find out how many vertices are in the object.
Note: |
For an ANN_OBJECT_TEXTPOINTER object, Points is updated with 5 points. The first four points are coordinates of a rectangle. The last two are the endpoints of the "pointer" segment. |
See Also