Class LineCanvas
Facilitates box drawing and line intersection detection and rendering. Does not support diagonal lines.
public class LineCanvas
- Inheritance
-
LineCanvas
- Inherited Members
Methods
- AddLine(Point, int, Orientation, BorderStyle)
Add a new line to the canvas starting at
from
. Use positivelength
for Right and negative for Left when Orientation is Horizontal. Use positivelength
for Down and negative for Up when Orientation is Vertical.
- GenerateImage(Rect)
Evaluate all currently defined lines that lie within
inArea
and map that shows what characters (if any) should be rendered at each point so that all lines connect up correctly with appropriate intersection symbols.