How to claculate Aspose word InsertImage method parameter height and width unit value from centimeter

Hi,
In Aspose word to insert image there is method
public Shape InsertImage(Image image, double width, double height);
I have image width x height as 18.2 x 43.3 cm
What is the formula to convert c.m. value to accurate value for InsertImage parameter ?
Thanks

@rasmi.mishra,

I think, you can meet this requirement by using the following code:

Shape shape = builder.InsertImage("path");
// Shape size.
double width = shape.Width;
double height = shape.Height;

// Size of the image which fills the shape.
double fillHeight = shape.ImageData.ImageSize.HeightPoints;
double fillWidht = shape.ImageData.ImageSize.WidthPoints;

// To convert points to centimeters
double cm = ConvertUtil.PointToInch(fillWidht) * 2.54; 

In case the problem still remains, please provide Aspose.Words generated DOCX file (containing the image) and tell what height/width you want to obtain?