本文整理了Java中org.apache.poi.xssf.usermodel.XSSFPicture.resize()
方法的一些代码示例,展示了XSSFPicture.resize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFPicture.resize()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFPicture
类名称:XSSFPicture
方法名:resize
[英]Reset the image to the dimension of the embedded image
[中]
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Resize the image proportionally.
*
* @see #resize(double, double)
*/
public void resize(double scale) {
resize(scale, scale);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Reset the image to the dimension of the embedded image
*
* @see #resize(double, double)
*/
public void resize(){
resize(Double.MAX_VALUE);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
@Override
public void resize(double scaleX, double scaleY) {
_picture.resize(scaleX, scaleY);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Reset the image to the dimension of the embedded image
*
* @see #resize(double, double)
*/
public void resize(){
resize(Double.MAX_VALUE);
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Reset the image to the original size.
*
* <p>
* Please note, that this method works correctly only for workbooks
* with the default font size (Calibri 11pt for .xlsx).
* If the default font is changed the resized image can be streched vertically or horizontally.
* </p>
*/
public void resize(){
resize(1.0);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Resize the image proportionally.
*
* @see #resize(double, double)
*/
public void resize(double scale) {
resize(scale, scale);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
@Override
public void resize(double scaleX, double scaleY) {
_picture.resize(scaleX, scaleY);
}
内容来源于网络,如有侵权,请联系作者删除!