DisplayPipelineDraw2dLine Method (PointF, PointF, DisplayPen) |
Draws a line whose coordinates are viewport pixels rather than world units. The
origin is the top left of the frame, with y increasing downwards - the same space
Draw2dText and DrawBitmap work in.
Namespace:
Rhino.Display
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic void Draw2dLine(
PointF from,
PointF to,
DisplayPen pen
)
Public Sub Draw2dLine (
from As PointF,
to As PointF,
pen As DisplayPen
)
Parameters
- from
- Type: System.DrawingPointF
Start of the line, in screen coordinates. - to
- Type: System.DrawingPointF
End of the line, in screen coordinates. - pen
- Type: Rhino.DisplayDisplayPen
Pen to stroke the line with.
See Also