LVectorBase::LVectorBase

#include "ltwrappr.h"

LVectorBase::LVectorBase(void)

LVectorBase::LVectorBase(pVector)

pVECTORHANDLE pVector;

pointer to a LEAD bitmap handle

Constructs and initializes the member variables of the class object.

Parameter

Description

pVector

Pointer to a vector handle.

Returns

None

Comments

These are the constructors for the LVectorBase class. They construct and initialize the member variables of the class object.

LVectorBase::LVectorBase(void) will initialize the bitmap width, height, and bits per pixel to 0.

LVectorBase::LVectorBase(pVector) constructs an LVectorBase object and allocates a vector from another LEAD vector handle.

Required DLLs and Libraries

LVKRN

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

Elements:

LVectorBase::~LVectorBase, Class Members

Example

#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName 
//This is the example for LVectorBase::LVectorBase(): 
L_INT LVectorBase__LVectorBaseExample_1() 
{ 
   LVectorBase myVectorBase; 
   //destructor called when out of scope 
   return SUCCESS; 
} 
// This is the example for LVectorBase::LVectorBase(pVectorHandle): 
L_INT LVectorBase__LVectorBaseExample() 
{ 
   L_INT          nRet; 
   L_TCHAR        szFileName[_MAX_PATH]; 
   L_UINT         uLen; 
   VECTORHANDLE   hVector; 
   L_WRPVECLOADFILE(MAKE_IMAGE_PATH(TEXT("random.dxf")), &hVector,NULL, NULL); 
   LVectorBase myVectorBase(&hVector); 
   nRet = myVectorBase.GetFileName(szFileName, &uLen); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C++ Class Library Help