L_VecSetParallelogram

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecSetParallelogram(pVector, pMin, pMax)

pVECTORHANDLE pVector;

/* pointer to a vector handle */

const pVECTORPOINT pMin;

/* pointer to a vector point */

const pVECTORPOINT pMax;

/* pointer to a vector point */

Sets the parallelogram of a vector handle drawing.

Parameter

Description

pVector

Pointer to a vector handle.

pMin

Pointer to the minimum parallelogram point. If pMin or pMax is NULL, the toolkit will calculate the values based on the minimum paralleogram needed to hold all the objects inside the vector drawing.

pMax

Pointer to the maximum parallelogram point. If pMin or pMax is NULL, the toolkit will calculate the values based on the minimum paralleogram needed to hold all the objects inside the vector drawing.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

After adding objects to a vector handle, the logical size of the image might change, this function will calculate new boundaries of the drawing.

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_VecGetParallelogram, L_VecSetScale, L_VecSetRotation, L_VecSetTranslation

Topics:

Working with Vector Handles

Example

This example will re-calculate the externs of a vector drawing.

L_INT VecSetParallelogramExample(pVECTORHANDLE pVector)
{
   return L_VecSetParallelogram( pVector, NULL, NULL );
}