本文整理了Java中com.lowagie.text.Image.setRotation()
方法的一些代码示例,展示了Image.setRotation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.setRotation()
方法的具体详情如下:
包路径:com.lowagie.text.Image
类名称:Image
方法名:setRotation
[英]Sets the rotation of the image in radians.
[中]以弧度为单位设置图像的旋转。
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Some image formats, like TIFF may present the images rotated that have
* to be compensated.
* @param initialRotation New value of property initialRotation.
*/
public void setInitialRotation(float initialRotation) {
float old_rot = rotationRadians - this.initialRotation;
this.initialRotation = initialRotation;
setRotation(old_rot);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Some image formats, like TIFF may present the images rotated that have
* to be compensated.
* @param initialRotation New value of property initialRotation.
*/
public void setInitialRotation(float initialRotation) {
float old_rot = rotationRadians - this.initialRotation;
this.initialRotation = initialRotation;
setRotation(old_rot);
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Some image formats, like TIFF may present the images rotated that have
* to be compensated.
* @param initialRotation New value of property initialRotation.
*/
public void setInitialRotation(float initialRotation) {
float old_rot = rotationRadians - this.initialRotation;
this.initialRotation = initialRotation;
setRotation(old_rot);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Sets the rotation of the image in degrees.
*
* @param deg
* rotation in degrees
*/
public void setRotationDegrees(float deg) {
double d = Math.PI;
setRotation(deg / 180 * (float) d);
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Sets the rotation of the image in degrees.
*
* @param deg
* rotation in degrees
*/
public void setRotationDegrees(float deg) {
double d = Math.PI;
setRotation(deg / 180 * (float) d);
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Sets the rotation of the image in degrees.
*
* @param deg
* rotation in degrees
*/
public void setRotationDegrees(float deg) {
double d = Math.PI;
setRotation(deg / 180 * (float) d);
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
image.setRotation(Float.parseFloat(value + "f"));
代码示例来源:origin: com.github.librepdf/openpdf
image.setRotation(Float.parseFloat(value + "f"));
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
image.setRotation(Float.parseFloat(value + "f"));
代码示例来源:origin: com.github.librepdf/openpdf
if (cell.getRotation() != 0) {
img = Image.getInstance(img);
img.setRotation(img.getImageRotation() + (float)(cell.getRotation() * Math.PI / 180.0));
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
if (cell.getRotation() != 0) {
img = Image.getInstance(img);
img.setRotation(img.getImageRotation() + (float)(cell.getRotation() * Math.PI / 180.0));
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
if (cell.getRotation() != 0) {
img = Image.getInstance(img);
img.setRotation(img.getImageRotation() + (float)(cell.getRotation() * Math.PI / 180.0));
内容来源于网络,如有侵权,请联系作者删除!