L_VecGetPan

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetPan(pVector, pPan)

Gets the current pan values.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

L_POINT * pPan

Pointer to a POINT structure to be updated with the current pan values.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function will get the current physical pan values. These pan values are in pixels. This function can be used to scroll the VECTOR image.

Required DLLs and Libraries

See Also

Functions

Example

This example will shift the drawing 10 pixels to the left and 10 pixels up.

L_LTVKRNTEX_API L_INT VecGetPanExample(pVECTORHANDLE pVector) 
{ 
   L_INT nRet; 
   POINT pan; 
 
   /* Get current pan values */ 
   nRet = L_VecGetPan( pVector, &pan ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* shift 10 pixels left, 10 pixels up */ 
   pan.x += 10; 
   pan.y += -10; 
 
   /* Set new pan */ 
   nRet = L_VecSetPan( pVector, &pan ); 
 
   return nRet; 
} 

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.