Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorMemoryFile::SaveMemory

Show in webframe

#include "ltwrappr.h"

virtual L_INT LVectorMemoryFile::SaveMemory(pLMemoryBuffer, nFormat, pSaveFileOption=NULL)

LBuffer * pLMemoryBuffer;

/* pointer to an LBuffer object */

L_INT nFormat;

/* output file format */

pSAVEFILEOPTION pSaveFileOption;

/* pointer to a structure */

Saves the class object's associated vector to a file in memory. The output can be in any of the supported compressed or uncompressed file formats.

Parameter

Description

pLMemoryBuffer

Pointer to an LBuffer object into which the bitmap in memory will be saved. After successful completion of this function, the object pointed to by pLMemoryBuffer will contain the output file.

nFormat

Output file format. For valid values, refer to Summary of All Supported Image File Formats

pSaveFileOption

Pointer to a SAVEFILEOPTION structure that contains information for saving the vector.

Returns

None

Comments

To use this function, do the following:

1.

Declare an LBuffer object. You can then pass its address in this function, which will allocate the memory, save the bitmap, and unlock the memory.

2.

Declare a long integer (L_UINT32) variable for the file-size. You can then pass its address in this function, which will update its value with the size of the file.

3.

Call this function to save the bitmap in the specified LBuffer object.

Note: More options are available in the SAVEFILEOPTION  structure.

This function cannot be used in combination with the Redirect input / output functions.

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:

Class Members

Topics:

Vector Loading, Saving and Copying

 

Vector Images: Loading and Saving Vector Files

Example

For an example, refer to LVectorMemoryFile::LoadMemory.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.