Click or drag to resize

PDFViewCtrlSetZoom Method (Int32, Int32, Double, Boolean)

Sets the zoom factor to a new value using the given pixel coordinate (x,y) as a zoom center, which will stay fixed on the screen. The zoom point (x,y) is represented in the screen coordinate system, which starts in the upper-left corner of the client window. Should you want to move (x, y) to the center of the client window, you can use the OnScroll() subsequently:

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public bool SetZoom(
	int x,
	int y,
	double zoom,
	bool animate
)

Parameters

x
Type: SystemInt32
the horizontal coordinate to zoom in.
y
Type: SystemInt32
the vertical coordinate to zoom in.
zoom
Type: SystemDouble
new scaling component used to display the page content.
animate
Type: SystemBoolean
Set to true to animate the change of the zoom. Default is false.

Return Value

Type: Boolean
true if successful, false otherwise.
See Also