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
Syntaxpublic bool SetScreenPort(
int portLeft,
int portRight,
int portBottom,
int portTop,
int portNear = 0,
int portFar = 0
)
Public Function SetScreenPort (
portLeft As Integer,
portRight As Integer,
portBottom As Integer,
portTop As Integer,
Optional portNear As Integer = 0,
Optional portFar As Integer = 0
) As Boolean
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:
Booleantrue if the operation is successful.
See Also