Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Barcode C++ Class Library Help

LBarCode::SetBitmap

Show in webframe

#include "ltwrappr.h"

L_VOID LBarCode::SetBitmap (pLBitmap)

LBitmapBase * pLBitmap;

/* pointer to an LBitmapBase object */

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

Parameter

Description

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

LTBAR

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

Functions:

LBarCode::LBarCode, LBarCode::IsValid, Class Members

Topics:

Programming with LEADTOOLS Barcode

Barcode Function Functions: Setting Barcode Information

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.