poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Wei <gw...@hotmail.com>
Subject Bug of HSSFPicture.resize()
Date Fri, 11 Dec 2009 04:52:58 GMT

Dear all,

As my test result, this function only works when the default font size of
workbook not changed. If I modified its size (For example, from 12 to 22)
and then call this function to insert an image, it stretchs horizontally.

Image 1 (Default font size set to 12):

Image 2 (Default font size set to 22):

I've checked the source code of HSSFPicture.java, function resize() calls
another function getPixelWidth() to calculate the column width in pixels,
but the later function only works correctly when the default font size of
workbook not changed.

Can somebody give me some suggestions to correct this problem? Thanks.

View this message in context: http://old.nabble.com/Bug-of-HSSFPicture.resize%28%29-tp26738706p26738706.html
Sent from the POI - User mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message