PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to set the image height and width
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1704
Page 1 of 1

Author:  nareshreddy [ Mon Jun 27, 2011 12:47 pm ]
Post subject:  How to set the image height and width

Hi,

How to set the image height and width ,that added using paragraph AddImage()?

Author:  nareshreddy [ Mon Jun 27, 2011 3:05 pm ]
Post subject:  Re: How to set the image height and width

I solved like this

Code:
Paragraph pgScanImage = section1.AddParagraph();
pgScanImage.Elements.AddLineBreak();
MigraDoc.DocumentObjectModel.Shapes.Image SacnImage1 = pgScanImage.AddImage("//Resources//" + scanImage1 + ".png");
SacnImage1.Height = "130pt";
SacnImage1.LockAspectRatio = true;

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/