AddImage
内容
[
隐藏
]AddImage(Stream, Rectangle)
将图像添加到页面上,并将其定位在指定矩形保存图像比例的中间。
public void AddImage(Stream imageStream, Rectangle imageRect)
范围 | 类型 | 描述 |
---|---|---|
imageStream | Stream | 图像的流。 |
imageRect | Rectangle | 图像的位置。 |
也可以看看
- class Rectangle
- class Page
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF
AddImage(string, Stream, Rectangle)
将可搜索的图像添加到页面上,并将其定位在指定矩形保存图像比例的中间。
public void AddImage(string hocr, Stream imageStream, Rectangle imageRect)
范围 | 类型 | 描述 |
---|---|---|
hocr | String | 图像的 hocr。 |
imageStream | Stream | 图像的流。 |
imageRect | Rectangle | 图像的位置。 |
也可以看看
- class Rectangle
- class Page
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF
AddImage(Stream, Rectangle, int, int, bool)
在页面上添加图像并根据图像矩形位置放置它。
public void AddImage(Stream imageStream, Rectangle imageRect, int imageWidth, int imageHeight,
bool saveImageProportions)
范围 | 类型 | 描述 |
---|---|---|
imageStream | Stream | 图像的流。 |
imageRect | Rectangle | 图片在页面上的默认位置。 |
imageWidth | Int32 | 图像的宽度。 |
imageHeight | Int32 | 图像的高度。 |
saveImageProportions | Boolean | 如果标志设置为真而不是图像放置在矩形位置;否则,矩形的大小变得等于图像大小。 |
也可以看看
- class Rectangle
- class Page
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF
AddImage(string, Rectangle)
将图像添加到页面上,并将其定位在指定矩形保存图像比例的中间。
public void AddImage(string imagePath, Rectangle rectangle)
范围 | 类型 | 描述 |
---|---|---|
imagePath | String | 图像的路径。 |
rectangle | Rectangle | 图像的位置。 |
也可以看看
- class Rectangle
- class Page
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF