AnnGetPointY method (ILEADRasterAnnotation)
short AnnGetPointY(long hObject, ILEADRasterVariant * pVarPoint); | |
Overview |
Refer to Implementing Annotations. |
Remarks
Returns an array of floating-point numbers for the Y coordinates of the vertices (corner points) of the specified annotation object. You can use this method with the AnnGetPointX 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