Click or drag to resize

RhinoViewportSetScreenPort 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: 9.0
Syntax
public bool SetScreenPort(
	int portLeft,
	int portRight,
	int portBottom,
	int portTop,
	int portNear = 0,
	int portFar = 0
)

Parameters

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

Return Value

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