L_VecEmpty

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecEmpty(pVector)

pVECTORHANDLE pVector;

/* pointer to a vector handle */

Deletes all layers and objects from the specified vector handle. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameter

Description

pVector

Pointer to a vector handle that references the vector image to be emptied.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Calling this function will not affect other settings such as camera, transformation, etc.

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_VecIsEmpty, L_VecInit, L_VecCopy, L_VecLoadFile, L_VecAddLayer, L_VecAddObject

Topics:

Working with Vector Handles

Example

This example empties a vector handle.

L_INT VecEmptyExample(pVECTORHANDLE pVector)
{
   L_INT nRet; /* return value */

   nRet = L_VecEmpty ( pVector );

   if( nRet != SUCCESS )
      MessageBox( NULL, TEXT("Error while emptying the vector!"), NULL, MB_OK );

   return nRet;
}