LFile::LFile

Summary

Constructs and initializes the member variables of the class object.

Syntax

#include "ltwrappr.h"

LFile::LFile()

LFile::LFile(pLBitmap)

LFile::LFile(pLBitmap, pFileName)

Parameters

LBitmapBase * pLBitmap

Pointer to a LEAD bitmap object, used to initialize the LFile object.

L_TCHAR * pFileName

Character string that contains the name of the file.

Returns

None.

Comments

LFile::LFile() is a constructor for the LFile class.

LFile::LFile(pLBitmap) also sets the bitmap for the class object.

LFile::LFile(pLBitmap, pFileName) also sets the bitmap for the class object and the filename to associate with the object.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

// This is an example for LFile::LFile(): 
 
L_INT LFile__LFileExample_1() 
{ 
    // this will call the default constructor and destructor when it is out of scope 
    LFile LeadFile; 
 
    //... 
 
    return SUCCESS; 
} 
 
// This is an example for LFile::LFile(pLBitmap): 
 
L_INT LFile__LFileExample_2() 
{ 
   L_INT nRet; 
   LBitmapBase   LeadBitmap ; 
 
   nRet = LeadBitmap.Load (MAKE_IMAGE_PATH(TEXT("Image1.cmp")), 24, ORDER_RGB) ; 
   if(nRet != SUCCESS) 
      return nRet; 
 
   LFile  LeadFile (&LeadBitmap) ; 
 
    //... 
    //... 
 
   return SUCCESS; 
} 
 
// This is an example for LFile::LFile(pLBitmap, pFileName): 
 
L_INT LFile__LFileExample_3(L_TCHAR  * pFileName) 
{ 
   LBitmapBase   LeadBitmap ; 
   LeadBitmap.Load (MAKE_IMAGE_PATH(TEXT("Image1.cmp")), 24, ORDER_RGB) ; 
 
   LFile  LeadFile (&LeadBitmap, pFileName) ; 
 
   // do process here … 
   //... 
 
   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 Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.