addImage
Contents
[
Hide
]addImage(PPImage imageSource) function
Adds a copy of an image from an another presentation.
Parameters
Name | Type | Description |
---|---|---|
imageSource | PPImage | Source image. |
Result
addImage(BufferedImage image) function
Add an image to a presentation.
Parameters
Name | Type | Description |
---|---|---|
image | BufferedImage | Image to add. This function converts WMF/EMF metafiles to raster PNG image before inserting to a presentation. |
Result
addImageFromStream (ImageCollection imagecollection, ReadStream stream, Function callback) function
Add an image to a presentation from stream.
Parameters
Name | Type | Description |
---|---|---|
imagecollection | ImageCollection | link to self |
stream | ReadStream | Stream to add image from. This function can add WMF/EMF metafiles to a presentation without converting them to raster PNG image. |
callback | Function | callback(error, result) - Callback to be called when the method has completed |
Result
addImageFromStream (ImageCollection imagecollection, ReadStream stream, int loadingStreamBehavior, Function callback) function
Creates and adds an image to a presentation from stream.
Parameters
Name | Type | Description |
---|---|---|
imagecollection | ImageCollection | link to self |
stream | ReadStream | Stream to add image file from. |
loadingStreamBehavior | int | The behavior which will be applied to the stream. |
callback | Function | callback(error, result) - Callback to be called when the method has completed |
Result
addImage(byte[] buffer) function
Adds an image to a presentation from specified buffer.
Parameters
Name | Type | Description |
---|---|---|
buffer | byte[] | Buffer. |
Result
addImage(SvgImage svgImage) function
Add an image to a presentation from Svg object.
Parameters
Name | Type | Description |
---|---|---|
svgImage | SvgImage | Svg image object ISvgImage |
Result
Error
Error | Condition |
---|---|
ArgumentNullException | When svgImage parameter is null. |