Method ModelView
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ModelView(CadView, DxfViewport)
The view of the canvas in model units through a viewport: the paper view scaled by the viewport's scale, about the point of model space under the middle of the canvas. A viewport at 1:20 seen at 2 pixels to the paper unit is seen at a tenth of a pixel to the model unit.
public static CadView ModelView(CadView paper, DxfViewport viewport)
Parameters
paperCadViewThe view of the layout.
viewportDxfViewportThe viewport.
Returns
- CadView
A new view, which zooms and pans as the paper's would.
Exceptions
- ArgumentNullException
Thrown when the view or the viewport is null.