ReplaceCurrentImage

替换当前图像

以指定的图像替换当前图像

参数:

名称 类型 描述性
simageUrl 字符串

图像源应取插图(目前只支持互联网URL或Base64编码图像)。

宽度 EMU系统

图像宽度英语测量单元

高度高度 EMU系统

图像高度英语测量单元

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0Var ODraining = Api.CreateImage.com/content/img/docbuildinger/examples/coorder_aspects.pngoParagraph.AddDrawing(oDrawing)!oDrawing.Select()!oDocument.ReplaceCurrentImage("https://helpcenter.onlyoffice.com/images/Help/GettingStarted/Documents/big/EditDocument.png", 60 * 36000, 35 * 36000)!builder.SaveFile("docx", "ReplaceCurrentImage.docx")!builder.CloseFile();

结果文档