예제 #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())
 {
 }