LVectorBase::LVectorBase

Summary

Constructs and initializes the member variables of the class object.

Syntax

#include "ltwrappr.h"

LVectorBase::LVectorBase(void)

LVectorBase::LVectorBase(pVector)

Parameters

pVECTORHANDLE 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

See Also

Elements

Example

//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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.