Table of Contents

Method ZoomAt

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ZoomAt(double, double, double)

Zooms about a pixel: the point of the drawing under it stays under it.

public void ZoomAt(double px, double py, double factor)

Parameters

px double

The X of the pixel.

py double

The Y of the pixel, down from the top.

factor double

The factor by which things grow; 1.2 is one wheel notch in, 1 / 1.2 one out.