AddPicture
内容
[
隐藏
]AddPicture(int, int, int, int, Stream)
将图片添加到集合中。
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, int lowerRightRow,
int lowerRightColumn, Stream stream)
| 范围 | 类型 | 描述 |
|---|---|---|
| upperLeftRow | Int32 | 左上行索引。 |
| upperLeftColumn | Int32 | 左上列索引。 |
| lowerRightRow | Int32 | 右下行索引 |
| lowerRightColumn | Int32 | 右下列索引 |
| stream | Stream | 包含图像数据的流对象。 |
返回值
Picture图片对象。
例子
[C#]
//添加图片
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 0, 1, 0, fs);
}
也可以看看
- class Picture
- class ShapeCollection
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells
AddPicture(int, int, Stream, int, int)
将图片添加到集合中。
public Picture AddPicture(int upperLeftRow, int upperLeftColumn, Stream stream, int widthScale,
int heightScale)
| 范围 | 类型 | 描述 |
|---|---|---|
| upperLeftRow | Int32 | 左上行索引。 |
| upperLeftColumn | Int32 | 左上列索引。 |
| stream | Stream | 包含图像数据的流对象。 |
| widthScale | Int32 | 图像宽度的比例,百分比。 |
| heightScale | Int32 | 图像高度的比例,百分比。 |
返回值
Picture图片对象。
例子
[C#]
//添加图片
using (FileStream fs = new FileStream("image.jpg", FileMode.Open))
{
Picture picture = shapes.AddPicture(1, 1, fs, 50, 60);
}
也可以看看
- class Picture
- class ShapeCollection
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells