jexcelapi是我们操作excel经常用一个工具。http://jexcelapi.sourceforge.net/
我们想在插入图片的时候经常会出现失真,走形的现象。问题主要出在WritableImage(double x, double y, double width, double height, java.io.File image)
这个方法。
这边的width
和height
并不是图片的像数数值,而是占据几个单元格的意思。API如下:
public WritableImage(double x, double y, double width, double height, java.io.File image)
-
Parameters:
-
x
- the column number at which to position the image -
y
- the row number at which to position the image </