AddImage()

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

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.

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

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.

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

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

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.

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

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.

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

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

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

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

Return Value

Added image.

See Also