L_VecEmpty

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecEmpty(pVector)

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

Parameters

pVECTORHANDLE pVector

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

Returns

Value Meaning
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

See Also

Functions

Topics

Example

This example empties a vector handle.

L_LTVKRNTEX_API 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; 
} 

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.