/// <summary> /// Create a Bezier curve at the provided points. /// </summary> public BezierCurve(PdfPoint startPoint, PdfPoint firstControlPoint, PdfPoint secondControlPoint, PdfPoint endPoint) { StartPoint = startPoint; FirstControlPoint = firstControlPoint; SecondControlPoint = secondControlPoint; EndPoint = endPoint; }
/// <summary> /// Create a new <see cref="Line"/>. /// </summary> public Line(PdfPoint from, PdfPoint to) { From = from; To = to; }
/// <summary> /// Create a new <see cref="Move"/> path command. /// </summary> /// <param name="location"></param> public Move(PdfPoint location) { Location = location; }
/// <summary> /// Create a new <see cref="PdfRectangle"/>. /// </summary> public PdfRectangle(PdfPoint topLeft, PdfPoint topRight, PdfPoint bottomLeft, PdfPoint bottomRight) { TopLeft = topLeft; TopRight = topRight; BottomLeft = bottomLeft; BottomRight = bottomRight; width = double.NaN; height = double.NaN; }
/// <summary> /// Create a new <see cref="PdfRectangle"/>. /// </summary> /// <param name="bottomLeft">Bottom left point of the rectangle.</param> /// <param name="topRight">Top right point of the rectangle.</param> public PdfRectangle(PdfPoint bottomLeft, PdfPoint topRight) : this(bottomLeft.X, bottomLeft.Y, topRight.X, topRight.Y) { }
/// <summary> /// Create a new <see cref="PdfLine"/>. /// </summary> /// <param name="point1">First point of the line.</param> /// <param name="point2">Second point of the line.</param> public PdfLine(PdfPoint point1, PdfPoint point2) { Point1 = point1; Point2 = point2; }