public SvgPenContext MapPen(GraphicsContext context) { var pen = new SvgPenContext { Stroke = new SvgColourServer { Colour = ConvertRDotNetColor(context.Foreground) }, StrokeWidth = new SvgUnit(UnitType, (float)context.LineWidth), StrokeLineCap = MapLineEnd(context.LineEnd), StrokeLineJoin = MapLineJoin(context.LineJoin), StrokeDashArray = MapLineType(context.LineType), }; return(pen); }
public SvgPenContext MapPen(GraphicsContext context) { var pen = new SvgPenContext { Stroke = new SvgColourServer { Colour = ConvertRDotNetColor(context.Foreground) }, StrokeWidth = new SvgUnit(UnitType, (float)context.LineWidth), StrokeLineCap = MapLineEnd(context.LineEnd), StrokeLineJoin = MapLineJoin(context.LineJoin), StrokeDashArray = MapLineType(context.LineType), }; return pen; }