Click or drag to resize

DisplayPipelineDrawArrow Method (Line, Double, Color, Single)

Draw a Grasshopper 2 style vector arrow. This method is relatively slow as it requires the construction of a DisplayPen and a PolylineCurve. However it is more accurate than other arrow drawing methods in that the tip of the drawn arrow is very close to the actual end of the line, the tip is always sharp, and the arrow head is resized to never be too small or large. Also note this method already takes into account logical pixel scaling.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void DrawArrow(
	Line line,
	double headSize,
	Color color,
	float shaftWidth
)

Parameters

line
Type: Rhino.GeometryLine
Vector shaft to draw.
headSize
Type: SystemDouble
Size of the head as a factor of arrow length. 0.1 would be a decent size.
color
Type: System.DrawingColor
Color of arrow geometry.
shaftWidth
Type: SystemSingle
Width of arrow geometry. Note that the shaft is drawn using a method which only supports integer thicknesses and the arrow head is drawn thicker to counter the human perception of seeing angled lines thinner than they really are.
See Also