作者:棉花小姐啦啦啦取_649 | 来源:互联网 | 2023-08-16 17:44
本文整理了Java中com.lowagie.text.Image.hasAbsoluteX()
方法的一些代码示例,展示了Image.hasAbsoluteX()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.hasAbsoluteX()
方法的具体详情如下:
包路径:com.lowagie.text.Image
类名称:Image
方法名:hasAbsoluteX
Image.hasAbsoluteX介绍
[英]Checks if the Images
has to be added at an absolute X position.
[中]检查是否必须在绝对X位置添加Images
。
代码示例
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
if ((image.getAlignment() & Image.RIGHT) == Image.RIGHT) startPosition = indentRight() - image.getScaledWidth() - mt[4];
if ((image.getAlignment() & Image.MIDDLE) == Image.MIDDLE) startPosition = indentLeft() + ((indentRight() - indentLeft() - image.getScaledWidth()) / 2) - mt[4];
if (image.hasAbsoluteX()) startPosition = image.getAbsoluteX();
if (textwrap) {
if (imageEnd <0 || imageEnd 代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
if ((image.getAlignment() & Image.RIGHT) == Image.RIGHT) startPosition = indentRight() - image.getScaledWidth() - mt[4];
if ((image.getAlignment() & Image.MIDDLE) == Image.MIDDLE) startPosition = indentLeft() + ((indentRight() - indentLeft() - image.getScaledWidth()) / 2) - mt[4];
if (image.hasAbsoluteX()) startPosition = image.getAbsoluteX();
if (textwrap) {
if (imageEnd <0 || imageEnd 代码示例来源:origin: com.github.librepdf/openpdf
if ((image.getAlignment() & Image.RIGHT) == Image.RIGHT) startPosition = indentRight() - image.getScaledWidth() - mt[4];
if ((image.getAlignment() & Image.MIDDLE) == Image.MIDDLE) startPosition = indentLeft() + ((indentRight() - indentLeft() - image.getScaledWidth()) / 2) - mt[4];
if (image.hasAbsoluteX()) startPosition = image.getAbsoluteX();
if (textwrap) {
if (imageEnd <0 || imageEnd