Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LPrint::LPrint

Show in webframe

#include "ltwrappr.h"

LPrint::LPrint()

LPrint::LPrint(pLBitmap)

LBitmapBase * pLBitmap;

/* pointer to a bitmap object */

Constructs and initializes the different member variables of the LPrint object.

Parameter

Description

pLBitmap

Pointer to a bitmap object.

Returns

None

Comments

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

LPrint::LPrint(pLBitmap) initializes the LEAD print object with a pointer to a bitmap object.

Required DLLs and Libraries

LTDIS

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:

LPrint::~LPrint, Class Members

Example

#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName
// This is an example for LPrint::LPrint():
L_INT LPrint__LPrintExample_1()
{
    // this will call the default constructor and destructor when it is out of scope
    LPrint MyPrint;
    //...
    return SUCCESS;
}
// This is an example for LPrint::LPrint(pLBitmap):
L_INT LPrint__LPrintExample_2()
{
   L_INT nRet;
   LBitmapBase LeadBitmap;
   nRet = LeadBitmap.Load(MAKE_IMAGE_PATH(TEXT("image1.cmp"))) ;
   if(nRet != SUCCESS)
      return nRet;
   LPrint  MyPrint(&LeadBitmap) ;
   //...
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.