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 positivelengthfor Right and negative for Left when Orientation is Horizontal. Use positivelengthfor Down and negative for Up when Orientation is Vertical.
- GenerateImage(Rect)
Evaluate all currently defined lines that lie within
inAreaand map that shows what characters (if any) should be rendered at each point so that all lines connect up correctly with appropriate intersection symbols.