Пример #1
0
 public static StreamGeometry BuildRectangle2(this RectangleBuilder param)
 {
     DrawingFactory factory = new DrawingFactory();
     return factory.ContinueDrawing(new LineBuilder() { Start = param.Start, Angle = 90 - param.Angle, LineLength = param.Height, }).
         ContinueDrawing(new LineBuilder() { Angle = 90 - param.Angle, LineLength = param.Width, }).
         ContinueDrawing(new LineBuilder() { Angle = param.Angle - 180, LineLength = param.Height, }).
         Build();
 }
Пример #2
0
 public static StreamGeometry BuildLine(this LineBuilder param)
 {
     DrawingFactory factory = new DrawingFactory();
     return factory.ContinueDrawing(param).Build();
 }