PDFViewCtrlSetZoom Method (Int32, Int32, Double) |
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
)
Public Function SetZoom (
x As Integer,
y As Integer,
zoom As Double
) As Boolean
public:
virtual bool SetZoom(
[InAttribute] int x,
[InAttribute] int y,
[InAttribute] double zoom
) sealed
function SetZoom(x, y, zoom);
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.
Return Value
Type:
Booleantrue if successful, false otherwise.
See Also