ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > PrintToPageWithLayout Method |
Draws an image onto the printer device context within the specified rectangle. Printing resolution depends on the current printer setting. Rectangle that specifies image layout is calculated in page-relative units, and as the actual page resolutions are obtained it translates the rectangle into real coordinates and assigns ClipRect according to the following rules:
Copy Code
|
|
---|---|
ClipRect.x = Left*nPageWidth ClipRect.y = Top*nPageHeight ClipRect.width = Width*nPageWidth ClipRect.height = Height*nPageHeight |
PrintToPageWithLayout(hDC As Long, Left As Double, Top As
Double, Width As Double, Height As Double)
Name | Description |
---|---|
hDC | Handle of printer device context where to draw image |
Left | Left boundary of layout rectangle |
Top | Top boundary of layout rectangle |
Width | Width of layout rectangle |
Height | Height of layout rectangle |
N/A
N/A
Display