Free Support Forum -

Set image height and width does not change with the height setting

how to set a image height , and the image width can’t change with the height setting.


Images of Word document are represented by Shape nodes in Aspose.Words’ DOM (document object model) and you can use Shape.AspectRatioLocked property to specify whether the Shape’s aspect ratio should be locked or not. You can try setting it to false to be able to adjust Image’s height and width independently.

Thanks , this can achieve the desired results.