L_VecGetPan

#include "lvkrn.h"

L_INT EXT_FUNCTION L_VecGetPan(pVector, pPan)

const pVECTORHANDLE pVector;

/* pointer to a vector handle */

POINT L_FAR * pPan;

/* pointer to a structure */

Gets the current pan values.

Parameter

Description

pVector

Pointer to a vector handle.

pPan

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

Returns

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

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:

L_VecSetPan, L_VecSetViewport, L_VecGetViewport

Example

void TestVecGetPan ( pVECTORHANDLE pVector )

{

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

   POINT pan;

 

   /* Get current pan values */

   L_VecGetPan( pVector, &pan );

 

   /* shift 10 pixels left, 10 pixels up */

   pan.x += 10;

   pan.y += -10;

 

   /* Set new pan */

   L_VecSetPan( pVector, &pan );

}