Click or drag to resize

RhinoViewportGetScreenPort Method

Location of viewport in pixels. These are provided so you can set the port you are using and get the appropriate transformations to and from screen space.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool GetScreenPort(
	out int portLeft,
	out int portRight,
	out int portBottom,
	out int portTop,
	out int portNear,
	out int portFar
)

Parameters

portLeft
Type: SystemInt32
portLeft != portRight.
portRight
Type: SystemInt32
portLeft != portRight.
portBottom
Type: SystemInt32
portTop != portBottom.
portTop
Type: SystemInt32
portTop != portBottom.
portNear
Type: SystemInt32
The viewport near value.
portFar
Type: SystemInt32
The viewport far value.

Return Value

Type: Boolean
true if the operation is successful.
See Also