本文整理了Java中com.lowagie.text.Image.getAbsoluteY()
方法的一些代码示例,展示了Image.getAbsoluteY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.getAbsoluteY()
方法的具体详情如下:
包路径:com.lowagie.text.Image
类名称:Image
方法名:getAbsoluteY
[英]Returns the absolute Y position.
[中]返回绝对Y位置。
代码示例来源:origin: com.github.librepdf/openpdf
height = image.getAbsoluteY();
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
height = image.getAbsoluteY();
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
height = image.getAbsoluteY();
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
for (Iterator i = images.iterator(); i.hasNext();) {
image = (Image) i.next();
image.setAbsolutePosition(image.getAbsoluteX(), image.getAbsoluteY() - difference - leading);
代码示例来源:origin: com.github.librepdf/openpdf
for (Iterator i = images.iterator(); i.hasNext();) {
image = (Image) i.next();
image.setAbsolutePosition(image.getAbsoluteX(), image.getAbsoluteY() - difference - leading);
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
for (Iterator i = images.iterator(); i.hasNext();) {
image = (Image) i.next();
image.setAbsolutePosition(image.getAbsoluteX(), image.getAbsoluteY() - difference - leading);
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Adds an <CODE>Image</CODE> to the page. The <CODE>Image</CODE> must have
* absolute positioning. The image can be placed inline.
* @param image the <CODE>Image</CODE> object
* @param inlineImage <CODE>true</CODE> to place this image inline, <CODE>false</CODE> otherwise
* @throws DocumentException if the <CODE>Image</CODE> does not have absolute positioning
*/
public void addImage(Image image, boolean inlineImage) throws DocumentException {
if (!image.hasAbsoluteY())
throw new DocumentException("The image must have absolute positioning.");
float matrix[] = image.matrix();
matrix[Image.CX] = image.getAbsoluteX() - matrix[Image.CX];
matrix[Image.CY] = image.getAbsoluteY() - matrix[Image.CY];
addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], inlineImage);
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Adds an <CODE>Image</CODE> to the page. The <CODE>Image</CODE> must have
* absolute positioning. The image can be placed inline.
* @param image the <CODE>Image</CODE> object
* @param inlineImage <CODE>true</CODE> to place this image inline, <CODE>false</CODE> otherwise
* @throws DocumentException if the <CODE>Image</CODE> does not have absolute positioning
*/
public void addImage(Image image, boolean inlineImage) throws DocumentException {
if (!image.hasAbsoluteY())
throw new DocumentException(MessageLocalization.getComposedMessage("the.image.must.have.absolute.positioning"));
float[] matrix = image.matrix();
matrix[Image.CX] = image.getAbsoluteX() - matrix[Image.CX];
matrix[Image.CY] = image.getAbsoluteY() - matrix[Image.CY];
addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], inlineImage);
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Adds an <CODE>Image</CODE> to the page. The <CODE>Image</CODE> must have
* absolute positioning. The image can be placed inline.
* @param image the <CODE>Image</CODE> object
* @param inlineImage <CODE>true</CODE> to place this image inline, <CODE>false</CODE> otherwise
* @throws DocumentException if the <CODE>Image</CODE> does not have absolute positioning
*/
public void addImage(Image image, boolean inlineImage) throws DocumentException {
if (!image.hasAbsoluteY())
throw new DocumentException(MessageLocalization.getComposedMessage("the.image.must.have.absolute.positioning"));
float matrix[] = image.matrix();
matrix[Image.CX] = image.getAbsoluteX() - matrix[Image.CX];
matrix[Image.CY] = image.getAbsoluteY() - matrix[Image.CY];
addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], inlineImage);
}
内容来源于网络,如有侵权,请联系作者删除!