org.apache.poi.xssf.usermodel.XSSFPicture.resize()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(964)

本文整理了Java中org.apache.poi.xssf.usermodel.XSSFPicture.resize()方法的一些代码示例,展示了XSSFPicture.resize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFPicture.resize()方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFPicture
类名称:XSSFPicture
方法名:resize

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);
}

相关文章