Click or drag to resize

ViewportInfoZoomToScreenRect Method (Int32, Int32, Int32, Int32)

Zooms to a screen zone.

View changing from screen input points. Handy for using a mouse to manipulate a view. ZoomToScreenRect() may change camera and frustum settings.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool ZoomToScreenRect(
	int left,
	int top,
	int right,
	int bottom
)

Parameters

left
Type: SystemInt32
Screen coord.
top
Type: SystemInt32
Screen coord.
right
Type: SystemInt32
Screen coord.
bottom
Type: SystemInt32
Screen coord.

Return Value

Type: Boolean
true if the operation succeeded; otherwise, false.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also