L_VecSaveFile

#include "lvkrn.h"

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

L_TCHAR L_FAR pszFile;

/* file name */

pVECTORHANDLE pVector;

/* pointer to the vector handle */

L_INT nFormat;

/* file format */

pSAVEFILEOPTION pSaveOptions;

/* pointer to a structure */

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

Parameter

Description

pszFile

Character string containing the output file name.

pVector

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

nFormat

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

pSaveOptions

Reserved for future use. Pass NULL.

Returns

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

LVKRN
LTFIL

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_VecLoadFile, L_VecApplyTransformation

Example

void TestVecSaveFile ()

{

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

   VECTORHANDLE TmpVector; /* Vector handle for the temporary vector image. */

 

   /* Load a vector vector image */

   L_VecLoadFile(TEXT("drawing3.dxf"), &TmpVector, NULL, NULL );

 

   /* Save the image as a windows meta file. */

   L_VecSaveFile(TEXT("TEST.WMF"), &TmpVector, FILE_WMF, NULL );

 

   /* Free the temporary vector.*/

   L_VecFree( &TmpVector );

}