很抱歉,如果这个问题对于某个特定的图书馆来说太具体,但是它看起来非常流行,以至于有人可能知道这个答案。对于AddImage API文档不说各有什么论据是:在IText PDF库中的AddImage的重载中有哪些参数?
public PdfXObject addImage(ImageData image,
float a,
float b,
float c,
float d,
float e,
float f)
Creates Image XObject from image and adds it to canvas (as Image XObject).
Parameters:
image - the PdfImageXObject object
a - an element of the transformation matrix
b - an element of the transformation matrix
c - an element of the transformation matrix
d - an element of the transformation matrix
e - an element of the transformation matrix
f - an element of the transformation matrix
显然两者的x/y COORDS,大概2是高度和宽度,但是从“遗留”的代码我的工作,不清楚哪一个是哪个,我想不出其他两个浮标可能是什么。
我甚至没有想到PDF库会用这些术语来思考,但现在我明白了。不知道为什么这个东西的原始维护者选择了这个特定的过载,然后没有看到适合评论它......但一切都很好,结果很好 – Toadfish
开发人员应该写出更好的文档。这适用于原始维护者以及撰写iText Javadocs的人;-) –
任何愿意靠近PDF的人可能至少会获得一次或两次免费通行证 – Toadfish