Constructs the object and initializes the member variables.
#include "ltwrappr.h"
LBuffer::LBuffer()
LBuffer::LBuffer(dwSize)
LBuffer::LBuffer(lpStr)
LBuffer::LBuffer(lpData, dwSize)
LBuffer::LBuffer(LBufferSrc)
Number of bytes with which to initialize the buffer.
Character string to be copied to the buffer.
Pointer to data buffer to be copied.
A LEAD LBuffer object to copy.
None.
LBuffer::LBuffer() is a constructor for the LBuffer class.
LBuffer::LBuffer(dwSize) will initialize the member variables and allocate the specified size of memory.
LBuffer::LBuffer(lpStr) will copy the specified string to the class object's buffer.
LBuffer::LBuffer(lpData, dwSize) will copy the specified buffer to the class object's buffer. This results in two copies of the buffer.
LBuffer::LBuffer(LBufferSrc) will copy the specified class object's buffer. This results in two copies of the buffer.
The parameter LBufferSrc is passed by reference, and is a required parameter.
Win32, x64.
This is an example for LBuffer::LBuffer():
L_INT LBuffer__LBufferFirstExample()
{
// this will call the default constructor and destructor when it is out of scope
LBuffer LeadBuffer ;
//...
return SUCCESS;
}
//This is an example for LBuffer::LBuffer(dwSize):
L_INT LBuffer__LBufferSecondExample(LBitmapBase& LeadBitmap)
{
L_INT nBytesPerLine ;
nBytesPerLine = LeadBitmap.GetBytesPerLine() ;
LBuffer LeadBuffer ((DWORD)nBytesPerLine) ;
//...
return SUCCESS;
}
//This is an example for LBuffer::LBuffer(lpStr):
L_INT LBuffer__LBufferThirdExample()
{
LBuffer LeadBuffer(TEXT("ABCD String")) ;
//...
return SUCCESS;
}
//This is an example for LBuffer::LBuffer(lpData, dwSize):
L_INT LBuffer__LBufferForthExample(LBitmapBase& LeadBitmap)
{
LBuffer LeadBuffer ;
L_INT nBytesPerLine ;
L_INT nRet;
L_CHAR * pBuff ;
nBytesPerLine = LeadBitmap.GetBytesPerLine() ;
nRet =(L_INT)LeadBitmap.GetRow(&LeadBuffer,5) ;
if(nRet < 1 )
return nRet;
pBuff = (L_CHAR *)LeadBuffer.Lock() ;
LBuffer LeadConstrBuffer(pBuff,(DWORD)nBytesPerLine) ;
LeadBuffer.Unlock() ;
//...
return SUCCESS;
}
//This is an example for LBuffer::LBuffer(LBufferSrc):
L_INT LBuffer__LBufferFifthExample(LBitmapBase& LeadBitmap)
{
LBuffer LeadBuffer ;
L_INT nRet;
nRet =(L_INT)LeadBitmap.GetRow(&LeadBuffer,5) ;
if(nRet < 1)
return nRet;
LBuffer LeadConstrBuffer(LeadBuffer) ;
//...
return SUCCESS;
}
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