Prints the bitmap to the specified device context using GDI+.
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.
|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():
// this will call the default constructor and destructor when it is out of scope
// This is an example for LPrint::LPrint(pLBitmap):
LBitmapBase LeadBitmap ;
nRet = LeadBitmap.Load(TEXT("C:\\LEADTOOLS22\\Resources\\Images\\image1.cmp")) ;
if(nRet != SUCCESS)
LPrint MyPrint(&LeadBitmap) ;
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries