本文整理了Java中com.itextpdf.text.Image.setRotation()
方法的一些代码示例,展示了Image.setRotation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.setRotation()
方法的具体详情如下:
包路径:com.itextpdf.text.Image
类名称:Image
方法名:setRotation
[英]Sets the rotation of the image in radians.
[中]以弧度为单位设置图像的旋转。
代码示例来源:origin: com.itextpdf/itextg
/**
* Sets the rotation of the image in degrees.
*
* @param deg
* rotation in degrees
*/
public void setRotationDegrees(final float deg) {
double d = Math.PI;
setRotation(deg / 180 * (float) d);
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* Sets the rotation of the image in degrees.
*
* @param deg
* rotation in degrees
*/
public void setRotationDegrees(final float deg) {
double d = Math.PI;
setRotation(deg / 180 * (float) d);
}
代码示例来源:origin: com.itextpdf/itextpdf
/**
* 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(final float initialRotation) {
float old_rot = rotationRadians - this.initialRotation;
this.initialRotation = initialRotation;
setRotation(old_rot);
}
代码示例来源:origin: com.itextpdf/itextg
/**
* 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(final float initialRotation) {
float old_rot = rotationRadians - this.initialRotation;
this.initialRotation = initialRotation;
setRotation(old_rot);
}
代码示例来源:origin: stackoverflow.com
Image player = new Image(playerTR);
player.setRotation(rotation_in_degrees);
代码示例来源:origin: com.itextpdf/itextpdf
if (cell.getRotation() != 0) {
img = Image.getInstance(img);
img.setRotation(img.getImageRotation() + (float) (cell.getRotation() * Math.PI / 180.0));
代码示例来源:origin: com.itextpdf/itextg
if (cell.getRotation() != 0) {
img = Image.getInstance(img);
img.setRotation(img.getImageRotation() + (float) (cell.getRotation() * Math.PI / 180.0));
内容来源于网络,如有侵权,请联系作者删除!