public HSSFClientAnchor(int dx1, int dy1, int dx2, int dy2, short col1, int row1, short col2, int row2)Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor. Parameters: dx1 - the x coordinate within the first cell. dy1 - the y coordinate within the first cell. dx2 - the x coordinate within the second cell. dy2 - the y coordinate within the second cell. col1 - the column (0 based) of the first cell. row1 - the row (0 based) of the first cell. col2 - the column (0 based) of the second cell. row2 - the row (0 based) of the second cell.
Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor.
看看HSSFClientAnchor的父类怎么解释的
HSSFClientAnchor anchor = new HSSFClientAnchor(0,0,图片宽,图片高,列,行,列,行);
int dy1,
int dx2,
int dy2,
short col1,
int row1,
short col2,
int row2)Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor. Parameters:
dx1 - the x coordinate within the first cell.
dy1 - the y coordinate within the first cell.
dx2 - the x coordinate within the second cell.
dy2 - the y coordinate within the second cell.
col1 - the column (0 based) of the first cell.
row1 - the row (0 based) of the first cell.
col2 - the column (0 based) of the second cell.
row2 - the row (0 based) of the second cell.
就行了