I'm using POI to create excel report file in java. My report contains report data and also some pictures in it. my problem is when I add a picture to my excel(it's created by custom font and custom font size) picture being stretched.
I'm using this approach : https://stackoverflow.com/a/34908675/354373 but it needs to determine one of width or hight and calculate other one, it means that one of width or hight should be specified and constant. but I want to show picture in excel in original size(without any stretch in width or hight).
PS : I want to add picture in one row and one or more column depends on image width. my concern is finding appropriate row hight and number of columns (or column width) based on the original image size.
Any guidance or sample code will be appreciate.