Table of Contents

Method ZoomToHeight

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ZoomToHeight(double, double, double)

Shows a view given by its centre and its height, as AutoCAD keeps the view of a viewport in a drawing (the VPORT record's groups 12, 22 and 40): the height of the canvas covers height units, whatever the canvas's width, so that a canvas twice as wide shows twice the width. The turn of the view is kept.

public void ZoomToHeight(double centerX, double centerY, double height)

Parameters

centerX double

The X of the centre of the view.

centerY double

The Y of the centre of the view.

height double

The height of the view in drawing units; one of nought or less shows 1 pixel to the unit.