add_image method
Contents
[
Hide
]add_image
Adds a copy of an image from an another presentation.
Returns
Added image.
def add_image(self, image_source):
...
Parameter | Type | Description |
---|---|---|
image_source | IPPImage | Source image. |
add_image
Add an image to a presentation.
Returns
Added image.
def add_image(self, image):
...
Parameter | Type | Description |
---|---|---|
image | aspose.pydrawing.Image | Image to add. |
Remarks
This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.
add_image
Add an image to a presentation.
Returns
Added image.
def add_image(self, image):
...
Parameter | Type | Description |
---|---|---|
image | IImage | Image to add. |
Remarks
This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.
add_image
Add an image to a presentation from stream.
Returns
Added image.
def add_image(self, stream):
...
Parameter | Type | Description |
---|---|---|
stream | io.RawIOBase | Stream to add image from. |
Remarks
This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.
add_image
Adds an image to a presentation from specified buffer.
Returns
Added image.
def add_image(self, buffer):
...
Parameter | Type | Description |
---|---|---|
buffer | bytes | Buffer. |
add_image
Add an image to a presentation from Svg object.
Returns
Added image.
def add_image(self, svg_image):
...
Parameter | Type | Description |
---|---|---|
svg_image | ISvgImage | Svg image object ISvgImage |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(ArgumentNullException)) | When svgImage parameter is None. |
add_image
Creates and adds an image to a presentation from stream.
Returns
Added IPPImage
.
def add_image(self, stream, loading_stream_behavior):
...
Parameter | Type | Description |
---|---|---|
stream | io.RawIOBase | Stream to add image file from. |
loading_stream_behavior | LoadingStreamBehavior | The behavior which will be applied to the stream. |
See Also
- class
IImage
- class
ImageCollection
- class
IPPImage
- class
ISvgImage
- enumeration
LoadingStreamBehavior
- module
aspose.slides
- library
Aspose.Slides