Hello, I'm having some trouble resizing an image in a worksheet. I'm using poi 3.2 and trying to add an image to a HSSFSheet. Let's consider I already successfully added an image to the workbook. Here's my adding/resizing code :
HSSFClientAnchor ancreImg = new HSSFClientAnchor( 0, 0, 0, 0, (short)0, 0, (short)1, 1); // does the size matters ? HSSFPicture Img = feuille.createDrawingPatriarch().createPicture( ancreImg, idImg ); ancreImg.setAnchorType(3); Img.resize(); The problem is that my image isn't resized to a 1.0 scale, but to a non proportionnal scale, something like 1.37 width and 1.42 height. I saw the resize(double scale) function in the doc, but it seems that it is a >3.2 function, I am rigth ? Since I'm unable to use it. If it's not the case, it looks like I have a version conflict in my project. Any hints about getting a 1:1 image to draw correctly in a sheet ? Thanks for the help !
