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.
#include "ltwrappr.h"
virtual L_INT LVectorMemoryFile::SaveMemory(pLMemoryBuffer, nFormat, pSaveFileOption=NULL)
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.
Output file format. For valid values, refer to Summary of All Supported Image File Formats.
Pointer to a SAVEFILEOPTION structure that contains information for saving the vector.
None.
To use this function, do the following:
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.
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.
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.
For an example, refer to LVectorMemoryFile::LoadMemory.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document