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
)
Public Function GetScreenPort (
<OutAttribute> ByRef portLeft As Integer,
<OutAttribute> ByRef portRight As Integer,
<OutAttribute> ByRef portBottom As Integer,
<OutAttribute> ByRef portTop As Integer,
<OutAttribute> ByRef portNear As Integer,
<OutAttribute> ByRef portFar As Integer
) As Boolean
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:
Booleantrue if the operation is successful.
See Also