#include "ltwrappr.h"
LMemoryFile::LMemoryFile()
LMemoryFile::LMemoryFile(pBitmap)
LBitmapBase * pBitmap; |
pointer to a bitmap object |
Constructs and initializes the different variables of the class object.
Parameter |
Description |
pBitmap |
Pointer to a LEAD bitmap object, used to initialize the LMemoryFile object. |
None.
LMemoryFile::LMemoryFile() is a constructor for the LMemoryFile class.
LMemoryFile::LMemoryFile(pLBitmap) initializes the member variables using the pLBitmap parameter.
Required DLLs and Libraries
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. |
Win32, x64.
Functions: |
#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName
// This is an example for LMemoryFile::LMemoryFile():
L_INT LMemoryFile__LMemoryFileExample_1()
{
// this will call the default constructor and destructor when it is out of scope
LMemoryFile memFile;
//
return SUCCESS;
}
// This is an example for LMemoryFile::LMemoryFile(pLBitmap):
L_INT LMemoryFile__LMemoryFileExample_2()
{
L_INT nRet;
LBitmapBase LeadBitmap;
nRet = LeadBitmap.Load (MAKE_IMAGE_PATH(TEXT("Image1.cmp")),24,ORDER_RGB) ;
if(nRet != SUCCESS)
return nRet;
LMemoryFile memFile(&LeadBitmap) ;
//...
return SUCCESS;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET