Prints the bitmap to the specified device context using GDI+.
#include "ltwrappr.h"
virtual L_INT LPrint::PrintGDIPlus(hDC=NULL, nX=0, nY=0, nWidth=0, nHeight=0, uFlags = 0)
Handle to the device context (DC) where the bitmap is to print. The mapping mode of the device context must be MM_TEXT
Value that represents the X position to start the print.
Value that represents the Y position to start the print.
Value that represents the printed width, in pixels. The actual width depends on the dots per inch (DPI) of the printer.
Value that represents the printed height, in pixels. The actual height depends on the dots per inch (DPI) of the printer.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If GDI+ library is not installed to the system, an error code is returned.
// 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(TEXT("C:\\LEADTOOLS22\\Resources\\Images\\image1.cmp")) ;
if(nRet != SUCCESS)
return nRet;
LPrint MyPrint(&LeadBitmap) ;
//...
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document