Computer Science Canada

Dashed Line without using Draw.DashedLine

Author:  brownwall [ Thu Nov 06, 2008 10:32 pm ]
Post subject:  Dashed Line without using Draw.DashedLine

I was wondering how one could create a procedure similar to Draw.Line that creates a dashed line? However, without using Draw.DashedLine. How would one go about this?

Author:  [Gandalf] [ Thu Nov 06, 2008 10:42 pm ]
Post subject:  RE:Dashed Line without using Draw.DashedLine

Using a loop and Draw.Line(). Take a look at this and try to expand it:
code:
Draw.Line(10, 10, 20, 20, black)
Draw.Line(30, 30, 40, 40, black)
Draw.Line(50, 50, 60, 60, black)

You will need to use some math to figure out the interval between each line and such. If you have a more specific problem, post it at that time. Smile


: