Sets a dashed style for line drawing methods.
All subsequent line drawing methods will use line width set by this method. The line dash style can be disabled by calling the G2D.LineDashOff.
Syntax
G2D.LineDash dashWidth&[, spaceWidth&]
Parameters
- The dashWidth& parameter specifies the length in pixels of the dashes.
- The optional spaceWidth& parameter specifies the distance in pixes between dashes. If not specified this will be set to the same value as dashWidth&.
Examples
Example1: Draw a dashed circle.
Import G2D From "lib/graphics/2d.bas"
G2D.LineDash 5
Circle (200, 200), 100, 2
See Also
G2D.LineDashOff
G2D.LineCap
G2D.LineWidth