Fills the specified array of ANNPOINT structures with the endpoints of the ruler object.
#include "ltwrappr.h"
virtual L_INT LAnnRuler::GetPoints(pPoints)
Pointer to the array to be filled with the endpoints of the ruler object.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The ANNPOINT structure is like a Windows POINT structure, except that it uses double-precision floating point values.
Coordinates of an object's points are relative to its container object. The coordinates are interpreted using the container's scaling factors and offsets, which are described in Low-Level Coordinate System for Annotations.
Win32, x64.
L_INT LAnnRuler_GetPointsExample()
{
LBitmap MyBitmap;
LAnnRuler MyAnnRuler;
ANNPOINT MyPts[2] = { 40,40,
140,40,
};
ANNPOINT AnnPoints[2];
pANNPOINT pMyPts = MyPts;
MyAnnRuler.SetPoints(pMyPts, 2);
MyAnnRuler.GetPoints(AnnPoints);
for (int i=0; i<2; i++)
{
L_TCHAR szTemp[100];
wsprintf(szTemp, TEXT("[%d]Point(%d, %d)"), i, (int)AnnPoints[i].x, (int)AnnPoints[i].y);
AfxMessageBox(szTemp);
}
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document