Aspose.Words.Drawing.Shape height & width

Hi,

I need to add a image in the Header of portion of my document dynamically. The image dimension may vary. I have put a limitation on the width to (page width - left margin - right margin) while the limit on height is set to (50 - this is derived from testing). What I want to understand is what is height calculated as (CM, Inches, Pixels or Points)?

This will help me to set a size limit on the image that is given as a input to the document builder. Kindly clarify?

Regards,
Yogi

Hi

Thanks for your request. Aspose.Words uses point units to specify all sizes, including size of shapes.
I think in your case, the code provided here could be useful for you:
https://forum.aspose.com/t/111719
Best regards.