ImageGear Professional for Windows ActiveX
PrintToPageWithLayout Method

Description:

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 

Syntax:

      PrintToPageWithLayout(hDC As Long, Left As Double, Top As
Double, Width As Double, Height As Double)

Parameters:

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

Return Value:

N/A

Bits Per Pixel:

N/A

Sample:

Display

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback