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

ParameterTypeDescription
imageSourceSystem::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

ParameterTypeDescription
imageSystem::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

ParameterTypeDescription
imageSystem::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

ParameterTypeDescription
streamSystem::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

ParameterTypeDescription
streamSystem::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

ParameterTypeDescription
streamSystem::SharedPtr<System::IO::Stream>Stream to add image file from.
loadingStreamBehaviorLoadingStreamBehaviorThe 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

ParameterTypeDescription
bufferSystem::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

ParameterTypeDescription
svgImageSystem::SharedPtr<ISvgImage>Svg image object ISvgImage

Return Value

Added image.

See Also