AddImage()
ImageCollection::AddImage(System::SharedPtr<IPPImage>) method
Adds a copy of an image from an another presentation.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<IPPImage> imageSource) override
Arguments
Parameter | Type | Description |
---|---|---|
imageSource | System::SharedPtr<IPPImage> | Source image. |
Return Value
Added image.
ImageCollection::AddImage(System::SharedPtr<System::Drawing::Image>) method
Add an image to a presentation.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<System::Drawing::Image> image) override
Arguments
Parameter | Type | Description |
---|---|---|
image | System::SharedPtr<System::Drawing::Image> | Image to add. |
Return Value
Added image.
Remarks
- Deprecated
- Use AddImage(IImage image) method instead. The method will be removed after release of version 24.7.
This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.
ImageCollection::AddImage(System::SharedPtr<IImage>) method
Add an image to a presentation.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<IImage> image) override
Arguments
Parameter | Type | Description |
---|---|---|
image | System::SharedPtr<IImage> | Image to add. |
Return Value
Added image.
Remarks
This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.
ImageCollection::AddImage(System::SharedPtr<System::IO::MemoryStream>) method
Add an image to a presentation from stream.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<System::IO::MemoryStream> stream) override
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::MemoryStream> | 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.
ImageCollection::AddImage(System::SharedPtr<System::IO::Stream>) method
Add an image to a presentation from stream.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<System::IO::Stream> stream) override
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::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.
ImageCollection::AddImage(System::SharedPtr<System::IO::Stream>, LoadingStreamBehavior) method
Creates and adds an image to a presentation from stream.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<System::IO::Stream> stream, LoadingStreamBehavior loadingStreamBehavior) override
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Stream to add image file from. |
loadingStreamBehavior | LoadingStreamBehavior | The behavior which will be applied to the stream. |
Return Value
Added IPPImage.
ImageCollection::AddImage(System::ArrayPtr<uint8_t>) method
Adds an image to a presentation from specified buffer.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::ArrayPtr<uint8_t> buffer) override
Arguments
Parameter | Type | Description |
---|---|---|
buffer | System::ArrayPtr<uint8_t> | Buffer. |
Return Value
Added image.
ImageCollection::AddImage(System::SharedPtr<ISvgImage>) method
Add an image to a presentation from Svg object.
System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage(System::SharedPtr<ISvgImage> svgImage) override
Arguments
Parameter | Type | Description |
---|---|---|
svgImage | System::SharedPtr<ISvgImage> | Svg image object ISvgImage |
Return Value
Added image.
See Also
- Enum LoadingStreamBehavior
- Typedef SharedPtr
- Typedef ArrayPtr
- Class IPPImage
- Class ImageCollection
- Class Image
- Class IImage
- Class MemoryStream
- Class Stream
- Class ISvgImage
- Namespace Aspose::Slides
- Library Aspose.Slides