我使用以下代码添加图片,但我不调整图像大小
var myImageFullPath = "ex.jpg";
using (DocX document = DocX.Create("ex.docx"))
{
Image image = document.AddImage(myImageFullPath);
Picture picture = image.CreatePicture();
Paragraph title = document.InsertParagraph().Append("TEST");
title.Alignment = Alignment.center;
Paragraph p1 = document.InsertParagraph();
p1.AppendPicture(picture);
document.Save();
}
已解决THX Picture picture = image.CreatePicture(400,600);