The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a word template - i added images in and I use the following code to size them:
Dim pic6 As IWPicture = CType(IIf(TypeOf bk.InsertParagraphItem(ParagraphItemType.Picture) Is WPicture, bk.InsertParagraphItem(ParagraphItemType.Picture), Nothing), WPicture) pic6.LoadImage(System.Drawing.Image.FromFile(dataPath2 & dr("image6")))
pic6.WidthScale = 16.83F
pic6.HeightScale = 16.83F
That works fine - but what is 'F'? I have a problem where by pictures of different resolutions display at different size. So two images 200x200pixels may display differently depending on the resolution. Is there any way to resize using mm or cm?
BPBhuvaneswari P Syncfusion Team August 20, 2008 09:25 AM UTC
Hi Peter,
Thank you for your interest in Syncfusion products
In the point specification ‘F’ represents the float value. We can set the DocIO units as only points. You have to convert from other unit to pixel. You can make use of PointsConverter.FromCm(1) class to convert the other units[cm] to points while setting the height and width of the image. Please use the Picture height and width property to set the image size.