L_VecFree

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecFree(pVector)

Frees storage allocated for the specified vector image.

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle referencing the vector image to free.

Returns

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

Comments

This function should be called when your program no longer needs the vector data.

Required DLLs and Libraries

See Also

Functions

Example

This example loads a DXF file and convert into WMF.

L_LTVKRNTEX_API L_INT VecFreeExample( 
   L_TCHAR* pszDXFFile, 
   L_TCHAR* pszWMFFile) 
{ 
   L_INT nRet; 
   VECTORHANDLE TmpVec; 
 
   /* Load DXF file. */ 
   nRet = L_VecLoadFile( pszDXFFile, &TmpVec, NULL, NULL ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Convert to WMF */ 
   nRet = L_VecSaveFile( pszWMFFile, &TmpVec, FILE_WMF, NULL ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Free the vector */ 
   nRet = L_VecFree ( &TmpVec ); 
 
   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.