Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new <see cref="Line"/>.
 /// </summary>
 public Line(PdfPoint from, PdfPoint to)
 {
     From = from;
     To   = to;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new <see cref="Move"/> path command.
 /// </summary>
 /// <param name="location"></param>
 public Move(PdfPoint location)
 {
     Location = location;
 }
Ejemplo n.º 4
0
        /// <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;
        }
Ejemplo n.º 5
0
 /// <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)
 {
 }
Ejemplo n.º 6
0
 /// <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;
 }