LBarCode::SetBitmap

#include "ltwrappr.h"

L_VOID LBarCode::SetBitmap (pLBitmap)

Associates an LBitmapBase object (or any object derived from LBitmapBase) with the class object.

Parameters

LBitmapBase * pLBitmap

Pointer to the bitmap object to be associated with the class object.

Returns

None.

Comments

Before using some of the LBarCode functions, a bitmap must be associated with the class object.

Specifically, barcodes cannot be read or written until a valid bitmap is associated with the class object.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For complete sample code, refer to the BarCode demo.

L_INT LBarCode_SetBitmapExample(HWND hWnd, LBitmapBase &LeadBitmap) 
 
{ 
   LBase::LoadLibraries(LT_ALL_LEADLIB);   //make sure all libraries are loaded 
 
   LBarCode MyBarCode; 
 
   MyBarCode.SetBitmap(&LeadBitmap); 
 
   if (!MyBarCode.IsValid()) 
 
   { 
 
      MessageBox(hWnd, TEXT("The LBarCode Bitmap is not valid"), TEXT("Error!"), MB_OK); 
 
      return FAILURE; 
 
   } 
 
   // ... 
 
   // do something here 
 
   // ... 
 
   return SUCCESS; 
 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C++ Class Library Help