本文整理了Java中org.apache.poi.hssf.usermodel.HSSFPicture.getImageDimension()
方法的一些代码示例,展示了HSSFPicture.getImageDimension()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFPicture.getImageDimension()
方法的具体详情如下:
包路径:org.apache.poi.hssf.usermodel.HSSFPicture
类名称:HSSFPicture
方法名:getImageDimension
[英]Return the dimension of the embedded image in pixel
[中]返回嵌入图像的尺寸(以像素为单位)
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
HSSFClientAnchor anchor = (HSSFClientAnchor)getAnchor();
Dimension size = getImageDimension();
double scaledWidth = size.getWidth() * scale;
double scaledHeight = size.getHeight() * scale;
代码示例来源:origin: com.haulmont.thirdparty/poi
HSSFClientAnchor anchor = (HSSFClientAnchor)getAnchor();
Dimension size = getImageDimension();
double scaledWidth = size.getWidth() * scale;
double scaledHeight = size.getHeight() * scale;
代码示例来源:origin: caryyu/excel2pdf
int col2 = anchor.getCol2();
if(row1 == cell.getRowIndex() && col1 == cell.getColumnIndex()){
dimension = pic.getImageDimension();
this.anchor = anchor;
this.bytes = data.getData();
内容来源于网络,如有侵权,请联系作者删除!