DisplayExtensionMethods
Methods
Draw a plane without any clipping issues, using the C-plane grid spacing as sizing.
Draw a plane without any clipping issues.
Draw a plane without any clipping issues.
Draw a point symbol at the given location.
public static void DrawPoint()
this Graphics
graphics,
Graphics object to draw with.
PointF
point,
Location of point.
scale,
Scale factor.
sequence
Sequence of fallback attributes.
Draw a point symbol at the given location.
public static void DrawPoints()
this Graphics
graphics,
Graphics object to draw with.
points,
Points to draw.
scale,
Scale factor.
sequence
Sequence of fallback attributes.
Draw a Grasshopper 2 style vector arrow. The head is drawn as a single filled polygon whose outline is that of a mitred, flat-capped stroke. It is more accurate than other arrow drawing methods in that the tip of the drawn arrow lands exactly on the end of the line, the tip is always sharp, and the head is resized to never be too small or large.
public static void DrawVectorArrow()
this DisplayPipeline
pipeline,
Pipeline to draw with.
vector,
Vector shaft to draw.
headSize,
Size of the head as a factor of arrow length. 0.1 would be a decent size.
Color
colour,
Colour of arrow geometry.
width
Width of arrow geometry. Note that the shaft is draw 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.
Draw a Grasshopper 2 style vector arrow. The head is drawn as a single filled polygon whose outline is that of a mitred, flat-capped stroke. It is more accurate than other arrow drawing methods in that the tip of the drawn arrow lands exactly on the end of the line, the tip is always sharp, and the head is resized to never be too small or large. Also note this method already takes into account logical pixel scaling.
public static void DrawVectorArrow()
this DisplayPipeline
pipeline,
Pipeline to draw with.
vector,
Vector shaft to draw.
headSize,
Size of the head as a factor of arrow length. 0.1 would be a decent size.
Color
colour,
Colour of arrow geometry.
width
Width of arrow geometry. Note that the shaft is draw 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.