Ejemplo n.º 1
0
 public void Render(Component component, CircuitDiagram.Render.IRenderContext dc, bool absolute)
 {
     IList<IPathCommand> commands = Commands;
     if (component.IsFlipped == true)
     {
         commands = new List<IPathCommand>(Commands.Count);
         foreach (IPathCommand command in Commands)
             commands.Add(command.Flip(component.Orientation == Orientation.Horizontal));
     }
     if (absolute)
         dc.DrawPath(Point.Add(Start.Resolve(component), component.Location), commands, Thickness, Fill);
     else
         dc.DrawPath(Start.Resolve(component), commands, Thickness, Fill);
 }