Stamp.BindImage
BindImage(string)
将图像设置为印章。
public void BindImage(string imageFile)
| 参数 | 类型 | 描述 |
|---|---|---|
| imageFile | 字符串 | 图像文件名和路径。 |
示例
PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", "output.pdf");
Stamp stamp = new Stamp();
stamp.BindImage("image.jpg");
fileStamp.AddStamp(stamp);
fileStamp.Close();
另请参阅
- 类 Stamp
- 命名空间 Aspose.Pdf.Facades
- 程序集 Aspose.PDF
BindImage(Stream)
设置将用作印章的图像。
public void BindImage(Stream image)
| 参数 | 类型 | 描述 |
|---|---|---|
| image | 流 | 包含图像数据的流。 |
另请参阅
- 类 Stamp
- 命名空间 Aspose.Pdf.Facades
- 程序集 Aspose.PDF