Praeclarum.Graphics.SvgGraphics.DrawLine C# (CSharp) Метод

DrawLine() публичный Метод

public DrawLine ( float sx, float sy, float ex, float ey, float w ) : void
sx float
sy float
ex float
ey float
w float
Результат void
		public void DrawLine (float sx, float sy, float ex, float ey, float w)
		{
			if (_inPolyline) {
				if (!_startedPolyline) {
					Write ("<polyline stroke=\"{0}\" stroke-opacity=\"{1}\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"{2}\" fill=\"none\" points=\"", _lastColor, _lastColorOp, w);
					Write("{0},{1} ", sx, sy);
					_startedPolyline = true;
				}
				Write("{0},{1} ", ex, ey);
			}
			else {
				WriteLine("<line x1=\"{0}\" y1=\"{1}\" x2=\"{2}\" y2=\"{3}\" stroke=\"{4}\" stroke-opacity=\"{5}\" stroke-width=\"{6}\" stroke-linecap=\"round\" fill=\"none\" />", sx, sy, ex, ey, _lastColor, _lastColorOp, w);
			}
		}