Пример #1
0
        internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight)
        {
            TopLeft  = topLeft.ToPoint();
            TopRight = topRight.ToPoint();

            BottomLeft  = bottomLeft.ToPoint();
            BottomRight = bottomRight.ToPoint();
        }
Пример #2
0
        internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight)
        {
            TopLeft  = topLeft.ToPoint();
            TopRight = topRight.ToPoint();

            BottomLeft  = bottomLeft.ToPoint();
            BottomRight = bottomRight.ToPoint();

            Width  = bottomRight.Subtract(bottomLeft).GetMagnitude();
            Height = topLeft.Subtract(bottomLeft).GetMagnitude();

            Area = Width * Height;
        }
Пример #3
0
 internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight)
     : this(topLeft.ToPoint(), topRight.ToPoint(), bottomLeft.ToPoint(), bottomRight.ToPoint())
 {
 }