L_VecSaveFile

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecSaveFile(pszFile, pVector, nFormat, pSaveOptions)

Saves a vector image, contained in a vector handle, to a file in any of the supported compressed or uncompressed formats.

Parameters

L_TCHAR pszFile

Character string containing the output file name.

pVECTORHANDLE pVector

Pointer to the vector handle that references the image data to save.

L_INT nFormat

Format of the output file. For valid values, refer to Formats of Output Files.

pSAVEFILEOPTION pSaveOptions

Reserved for future use. Pass NULL.

Returns

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

Comments

Saves a vector image contained in a vector handle to a file in any of the supported vector image formats. For more information about file formats that support vector images, refer to Formats of Output Files.

Required DLLs and Libraries

See Also

Functions

Example

This example loads a temporary vector and saves it to a new file.

L_LTVKRNTEX_API L_INT VecSaveFileExample(L_VOID) 
{ 
   L_INT nRet; 
   VECTORHANDLE TmpVector; /* Vector handle for the temporary vector image. */ 
 
   /* Load a vector vector image */ 
   nRet = L_VecLoadFile(MAKE_IMAGE_PATH(TEXT("random.dxf")), &TmpVector, NULL, NULL ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Save the image as a windows meta file. */ 
   nRet = L_VecSaveFile(MAKE_IMAGE_PATH(TEXT("TEST.WMF")), &TmpVector, FILE_WMF, NULL ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Free the temporary vector.*/ 
   nRet = L_VecFree( &TmpVector ); 
 
   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.