#include "ltwrappr.h"
virtual L_INT LPrint::PrintGDIPlus(hDC=NULL, nX=0, nY=0, nWidth=0, nHeight=0, uFlags = 0)
HDC hDC; |
handle to the target device context (DC) |
L_INT nX; |
x position to start the print |
L_INT nY; |
y position to start the print |
L_INT nWidth; |
printed width |
L_INT nHeight; |
printed height |
L_UINT32 uFlags; |
flags, reserved pass 0 |
Prints the bitmap to the specified device context using GDI+.
Parameter |
Description |
hDC |
Handle to the device context (DC) where the bitmap is to print. The mapping mode of the device context must be MM_TEXT |
nX |
Value that represents the X position to start the print. |
nY |
Value that represents the Y position to start the print. |
nWidth |
Value that represents the printed width, in pixels. The actual width depends on the dots per inch (DPI) of the printer. |
nHeight |
Value that represents the printed height, in pixels. The actual height depends on the dots per inch (DPI) of the printer. |
uFlags |
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.
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. |
Functions: |
|
Topics: |
// 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("%UserProfile%\\My Documents\\LEADTOOLS 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