Available in LEADTOOLS Vector Imaging toolkits. |
L_VecGetParallelogram
#include "lvkrn.h"
L_LVKRN_API L_INT L_VecGetParallelogram(pVector, pMin, pMax)
const pVECTORHANDLE pVector; |
/* pointer to a vector handle */ |
pVECTORPOINT pMin; |
/* pointer to a vector point */ |
pVECTORPOINT pMax; |
/* pointer to a vector point */ |
Gets the parallelogram of a vector handle drawing.
Parameter |
Description |
pVector |
Pointer to a vector handle. |
pMin |
Pointer to a VECTORPOINT structure to be updated with the minimum point of the bounding parallelogram of the specified vector handle. |
pMax |
Pointer to a VECTORPOINT structure to be updated with |
the maximum point of the bounding parallelogram of the specified vector handle.
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
You can set the parallelogram with L_VecSetParallelogram.
Required DLLs and Libraries
LVKRN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
|
Topics: |
Example
This example will show the parallelogram of the vector drawing inside a message box.
L_INT VecGetParallelogramExample(const pVECTORHANDLE pVector) { L_INT nRet; VECTORPOINT Min, Max; L_TCHAR szBuffer[ 80 ]; nRet = L_VecGetParallelogram( pVector, &Min, &Max ); if(nRet != SUCCESS) return nRet; _stprintf_s( szBuffer,80, TEXT("%f,%f,%f to %f,%f,%f"), Min.x, Min.y, Min.z, Max.x, Max.y, Max.z ); MessageBox( NULL, szBuffer, TEXT("Parallelogram"), MB_OK ); return SUCCESS; }