AddImage
内容
[
隐藏
]AddImage(IPPImage)
从另一个演示文稿添加图像的副本。
public IPPImage AddImage(IPPImage imageSource)
参数 | 类型 | 描述 |
---|---|---|
imageSource | IPPImage | 源图像。 |
返回值
添加的图像。
另见
- interface IPPImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(IImage)
将图像添加到演示文稿中。
public IPPImage AddImage(IImage image)
参数 | 类型 | 描述 |
---|---|---|
image | IImage | 要添加的图像。 |
返回值
添加的图像。
注释
此方法在插入演示文稿之前将 WMF/EMF 元文件转换为栅格 PNG 图像。
另见
- interface IPPImage
- interface IImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(MemoryStream)
从流向演示文稿添加图像。
public IPPImage AddImage(MemoryStream stream)
参数 | 类型 | 描述 |
---|---|---|
stream | MemoryStream | 用于添加图像的流。 |
返回值
添加的图像。
注释
此方法可以将 WMF/EMF 元文件添加到演示文稿而无需将其转换为栅格 PNG 图像。
另见
- interface IPPImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(Stream)
从流向演示文稿添加图像。
public IPPImage AddImage(Stream stream)
参数 | 类型 | 描述 |
---|---|---|
stream | Stream | 用于添加图像的流。 |
返回值
添加的图像。
注释
此方法可以将 WMF/EMF 元文件添加到演示文稿而无需将其转换为栅格 PNG 图像。
另见
- interface IPPImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(Stream, LoadingStreamBehavior)
从流创建并添加图像到演示文稿。
public IPPImage AddImage(Stream stream, LoadingStreamBehavior loadingStreamBehavior)
参数 | 类型 | 描述 |
---|---|---|
stream | Stream | 用于添加图像文件的流。 |
loadingStreamBehavior | LoadingStreamBehavior | 将应用于流的行为。 |
返回值
添加的 IPPImage
。
另见
- interface IPPImage
- enum LoadingStreamBehavior
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(byte[])
从指定缓冲区向演示文稿添加图像。
public IPPImage AddImage(byte[] buffer)
参数 | 类型 | 描述 |
---|---|---|
buffer | Byte[] | 缓冲区。 |
返回值
添加的图像。
另见
- interface IPPImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(ISvgImage)
从 Svg 对象向演示文稿添加图像。
public IPPImage AddImage(ISvgImage svgImage)
参数 | 类型 | 描述 |
---|---|---|
svgImage | ISvgImage | Svg 图像对象 ISvgImage |
返回值
添加的图像。
异常
异常 | 条件 |
---|---|
ArgumentNullException | 当 svgImage 参数为 null 时。 |
另见
- interface IPPImage
- interface ISvgImage
- class ImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides