AddImage
Contents
[
Hide
]AddImage(IImage)
Add an image to a presentation.
public IPPImage AddImage(IImage image)
Parameter | Type | Description |
---|---|---|
image | IImage | Image to add. |
Return Value
Added image.
Remarks
This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.
See Also
- interface IPPImage
- interface IImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(MemoryStream)
Adds image from a memory stream.
public IPPImage AddImage(MemoryStream stream)
Parameter | Type | Description |
---|---|---|
stream | MemoryStream | Memory stream. |
Return Value
Added image.
See Also
- interface IPPImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(Stream)
Add an image to a presentation from stream.
public IPPImage AddImage(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | Stream to add image from. |
Return Value
Added image.
Remarks
This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.
See Also
- interface IPPImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(Stream, LoadingStreamBehavior)
Creates and adds an image to a presentation from stream.
public IPPImage AddImage(Stream stream, LoadingStreamBehavior loadingStreamBehavior)
Parameter | Type | Description |
---|---|---|
stream | Stream | Stream to add image file from. |
loadingStreamBehavior | LoadingStreamBehavior | The behavior which will be applied to the stream. |
Return Value
Added IPPImage
.
See Also
- interface IPPImage
- enum LoadingStreamBehavior
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(byte[])
Adds an image to a presentation from specified buffer.
public IPPImage AddImage(byte[] buffer)
Parameter | Type | Description |
---|---|---|
buffer | Byte[] | Buffer. |
Return Value
Added image.
See Also
- interface IPPImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(IPPImage)
Adds a copy of an image from an another presentation.
public IPPImage AddImage(IPPImage imageSource)
Parameter | Type | Description |
---|---|---|
imageSource | IPPImage | Source image. |
Return Value
Added image.
See Also
- interface IPPImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddImage(ISvgImage)
Add an image to a presentation from SVG object.
public IPPImage AddImage(ISvgImage svgImage)
Parameter | Type | Description |
---|---|---|
svgImage | ISvgImage | SVG image object ISvgImage |
Return Value
Added image.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when svgImage parameter is null. |
See Also
- interface IPPImage
- interface ISvgImage
- interface IImageCollection
- namespace Aspose.Slides
- assembly Aspose.Slides