L_VecSetPan

#include "ltvkrn.h"

L_LTVKRN_API L_INT L_VecSetPan(pVector, pPan)

Sets the new pan values.

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle.

const L_POINT * pPan

Pointer to a POINT structure that contains the new pan coordinates.

Returns

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

Comments

This function will set the 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 sets the pan value of a vector to 10 pixels horizontal and 20 vertical.

L_LTVKRNTEX_API L_INT VecSetPanExample(pVECTORHANDLE pVector) 
{ 
   POINT pan; 
 
   pan.x = 10; 
   pan.y = 20; 
 
   return L_VecSetPan( pVector, &pan ); 
} 

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

LEADTOOLS Vector C API Help