Copied image stretches

Hi,
I am trying to duplicate the first page to create a second page.
When I copy the row heights, the image that I also copied gets stretched vertically.
Is there any way to avoid this?

I am using xlSheetSetRowW to copy the row heights, and xlSheetSetPicture2W to copy the image.

LibXL:v4.6.0

Best regards,

Hi
After looking into it further, it turns out the issue was a bit different than I originally thought.

The image has its property set to POSITION_ONLY_MOVE, but its height is still being affected by xlSheetSetRowW.
There seems to be a way to work around this, but it does feel like it might be a bug.
Best regards,

Hello Hayami,

sorry for the delay in getting back to you.

Please try to set row heights before placing the picture. Also picture properties are applied only for behavior in Excel, they do not affect the LibXL functions.

Hello Dmytro,
Thank you for the information.
I had already taken that approach, but I appreciate your input.
Best regards,
Hayami