AddImage()
Contents
[
Hide
]IImageCollection::AddImage(System::SharedPtr<System::Drawing::Image>) method
Add an image to a presentation.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<System::Drawing::Image> image)=0
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.
IImageCollection::AddImage(System::SharedPtr<IImage>) method
Add an image to a presentation.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<IImage> image)=0
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.
IImageCollection::AddImage(System::SharedPtr<System::IO::MemoryStream>) method
Adds image from a memory stream.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<System::IO::MemoryStream> stream)=0
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::MemoryStream> | Memory stream. |
Return Value
Added image.
IImageCollection::AddImage(System::SharedPtr<System::IO::Stream>) method
Add an image to a presentation from stream.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<System::IO::Stream> stream)=0
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.
IImageCollection::AddImage(System::SharedPtr<System::IO::Stream>, LoadingStreamBehavior) method
Creates and adds an image to a presentation from stream.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<System::IO::Stream> stream, LoadingStreamBehavior loadingStreamBehavior)=0
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.
IImageCollection::AddImage(System::ArrayPtr<uint8_t>) method
Adds an image to a presentation from specified buffer.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::ArrayPtr<uint8_t> buffer)=0
Arguments
Parameter | Type | Description |
---|---|---|
buffer | System::ArrayPtr<uint8_t> | Buffer. |
Return Value
Added image.
IImageCollection::AddImage(System::SharedPtr<IPPImage>) method
Adds a copy of an image from an another presentation.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<IPPImage> imageSource)=0
Arguments
Parameter | Type | Description |
---|---|---|
imageSource | System::SharedPtr<IPPImage> | Source image. |
Return Value
Added image.
IImageCollection::AddImage(System::SharedPtr<ISvgImage>) method
Add an image to a presentation from SVG object.
virtual System::SharedPtr<IPPImage> Aspose::Slides::IImageCollection::AddImage(System::SharedPtr<ISvgImage> svgImage)=0
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 Image
- Class IImageCollection
- Class IImage
- Class MemoryStream
- Class Stream
- Class ISvgImage
- Namespace Aspose::Slides
- Library Aspose.Slides