我该如何解释PDF中矩形的坐标? [英] How should I interpret the coordinates of a rectangle in PDF?

查看:646
本文介绍了我该如何解释PDF中矩形的坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解更多关于矩形坐标的信息,特别是

I would like to know more about the coordinates of a Rectangle, in particular:


  • 左下X

  • 左下Y

  • 右上角X

  • 右上角Y

  • lower left X
  • lower left Y
  • upper right X
  • upper right Y

每次,我都会对如何根据这些坐标绘制尺寸来绘制矩形感到困惑。

Every time, I get confused about how to make dimensions based on these coordinates to draw rectangle.

如果可能,我可以简要地获得关于这些坐标位置的图形表示吗?

If possible, can I get a graphical representation briefly about these coordinates positions?

推荐答案

在某人可以解释左下角的X之前,左边的Y,右上角X和右上角Y是关于坐标系的: PDF页面的Origin(x,y)在哪里?

Before someone can explain what the lower-left X, lower-left Y, upper-right X and upper-right Y of a rectangle are about, you need to know about the coordinate system: Where is the Origin (x,y) of a PDF page?

答案该问题包含您需要的所有信息,除了您要求的图形表示。这是坐标系的简单表示:

The answer to that question contains all the information you need, except for the graphical representation you are asking for. This is a simple representation of the coordinate system:

坐标系的原点是(0,0)。正X值位于原点右侧,正Y值位于原点之上。

The origin of the coordinate system is (0, 0). Positive X values are to the right of the origin, positive Y values are above the origin.

我绘制了一个 Rectangle 并指示您可以在哪里找到左下角(坐标(llx,lly))和右上角(坐标 (urx,ury))。

I have drawn a Rectangle and indicates where you can find the lower-left corner (with coordinate (llx, lly)) and the upper-right corner (with coordinate (urx, ury)).

矩形的边与X轴和Y轴平行,因此您只需要两个坐标来定义矩形。

The sides of the rectangle are always in parallel with the X and the Y axis, hence you only need two coordinates to define the rectangle.

这篇关于我该如何解释PDF中矩形的坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆