Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LContainer::GetScalar
#include "Ltwrappr.h"
L_INT LContainer::GetScalar (pvptScalarNum, pvptScalarDen)
pVECTORPOINT pvptScalarNum; |
/* pointer to a structure */ |
pVECTORPOINT pvptScalarDen; |
/* pointer to a structure */ |
Gets the current container coordinates scaling values.
Parameter |
Description |
pvptScalarNum |
Pointer to VECTORPOINT structure to be updated with the numerator of the scaling factors for the x, y and z directions. |
pvptScalarDen |
Pointer to VECTORPOINT structure to be updated with the denominator of the scaling factors for the x, y and z directions. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
LTCON 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
L_INT LContainer_GetScalarExample( LContainer &lCont ) { L_INT nRet; nRet = lCont.IsValid (); if (SUCCESS == nRet ) /* check the validity of container handle */ { VECTORPOINT vptScalarNum, vptScalarDen ; /* get the current scaling values */ nRet = lCont.GetScalar ( &vptScalarNum, &vptScalarDen ) ; if(nRet != SUCCESS) return nRet; /* Set the horizontal scaling factor */ vptScalarNum.x ++ ; vptScalarDen.x = 1 ; /* Set the vertical scaling factor */ vptScalarNum.y ++ ; vptScalarDen.y = 1 ; /* Set the z scaling factor to 1:1 factor */ vptScalarNum.z = 1 ; vptScalarDen.z = 1 ; nRet = lCont.SetScalar ( &vptScalarNum, &vptScalarDen ) ; if(nRet != SUCCESS) return nRet; } else { return nRet ; } return SUCCESS ; }