ZoomAt(in Viewport, Double, Double, Double) Method

Definition

Assembly Broadside.Viewer.dll

Changes a viewport's zoom keeping the content under one viewport pixel (a pinch's or a wheel's focus) in place.

public Viewport ZoomAt(in Viewport viewport, double zoom, double x, double y)

Parameters

viewport
Viewport

The viewport.

zoom
Double

The new zoom in pixels per point.

x
Double

The viewport x of the focus.

y
Double

The viewport y of the focus.

Returns

Viewport
The viewport zoomed and kept inside the content (content smaller than the viewport is centred instead).