Document
RenderToScale Method
|
Draws a document page at the specified scale into the System.Drawing.Graphics object.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public SizeF RenderToScale(
int pageIndex,
Graphics graphics,
float x,
float y,
float scale
)
Public Function RenderToScale (
pageIndex As Integer,
graphics As Graphics,
x As Single,
y As Single,
scale As Single
) As SizeF
public:
SizeF RenderToScale(
int pageIndex,
Graphics^ graphics,
float x,
float y,
float scale
)
member RenderToScale :
pageIndex : int *
graphics : Graphics *
x : float32 *
y : float32 *
scale : float32 -> SizeF
Parameters
-
pageIndex
-
Type:
System
Int32
The 0-based page index.
-
graphics
-
Type:
System.Drawing
Graphics
The object where to draws to.
-
x
-
Type:
System
Single
The X coordinate (in world units) of the top left corner of the rendered page.
-
y
-
Type:
System
Single
The Y coordinate (in world units) of the top left corner of the rendered page.
-
scale
-
Type:
System
Single
The scale for rendering the page (1.0 is 100%).
Return Value
Type:
SizeF
See Also