Hi Jonny,
Thank you for using Syncfusion products.
Regarding Scale() query:
The Scale method of the IPictureShape is used to resize the image in scale width and scale height which is in percent. The below code snippet describes the implementation inside the Scale().
Code Snippet:
Width = ( int )( Width * scaleWidth / 100.0 ); Height = ( int )( Height * scaleHeight / 100.0 ); |
Here, the scaleWidth and scaleHeight should be in percent.
Regarding ColumnWidth/RowHeight query:
As you mentioned, for all the shape related dimensions, you must use the pixel value. The table describes the point and pixel values of the range for RowHeight and ColumnWidth.
Property in Points | Equivalent pixel values |
range.ColumnWidth | worksheet.GetColumnWidthInPixels(range.Column) |
range.RowHeight | worksheet.GetRowHeightInPixels(range.Row) |
Please let us know if you have any concerns.
Regards,
Dilli babu.