Click or drag to resize

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
)

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