Gets the physical bounding rectangle for the class object.
#include "ltwrappr.h"
L_INT LVectorObject::GetObjectRect(pRect)
Pointer to a RECT structure to be updated with the bounding rectangle of the class object.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This example will get the extents of a vector object under pPoint.
L_INT LVectorObject__GetObjectRectExample(HWND hWnd, LVectorBase *pVector, LPPOINT pPoint)
{
L_INT nRet;
LVectorObject VectorObject;
nRet = pVector->HitTest(pPoint, &VectorObject);
if (nRet==SUCCESS)
{
RECT boundingRect;
L_TCHAR szMsg[200];
nRet = VectorObject.GetObjectRect(&boundingRect);
if(nRet != SUCCESS)
return nRet;
wsprintf(szMsg, TEXT("GetObjectRect boundingRect[%d,%d] [%d,%d]"),
boundingRect.left,
boundingRect.top,
boundingRect.right,
boundingRect.bottom
);
MessageBox(hWnd, szMsg, TEXT(""), MB_OK);
}
else
return nRet;
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