Represents collection of PPImage. More...

Inherits Aspose::Slides::IImageCollection, and Aspose::Slides::IDOMObject.

Public Member Functions

int32_t get_Count ()
 Returns a number of images in the collection. Read-only int32_t. More...
 
bool get_IsSynchronized ()
 Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool. More...
 
System::SharedPtr< System::Objectget_SyncRoot ()
 Returns a synchronization root. Read-only object. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IPPImageidx_get (int32_t index)
 Gets the element at the specified index. Read-only IPPImage. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< IPPImage > imageSource)
 Adds a copy of an image from an another presentation. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< System::Drawing::Image > image)
 Add an image to a presentation. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< System::IO::MemoryStream > stream)
 Add an image to a presentation from stream. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< System::IO::Stream > stream)
 Add an image to a presentation from stream. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< System::IO::Stream > stream, LoadingStreamBehavior loadingStreamBehavior)
 Creates and adds an image to a presentation from stream. More...
 
System::SharedPtr< IPPImageAddImage (System::ArrayPtr< uint8_t > buffer)
 Adds an image to a presentation from specified buffer. More...
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< ISvgImage > svgImage)
 Add an image to a presentation from Svg object. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< IPPImage > > > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< IPPImage >> array, int32_t index)
 
- Public Member Functions inherited from Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IPPImage > >
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Slides::IPPImage > > array, int32_t index)=0
 Copies all elements from the collection into the specified array. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

System::SharedPtr< IPPImageget_NoImage ()
 
System::SharedPtr< PPImageget_AudioImage ()
 
System::SharedPtr< PPImageget_OleSubstituteImageTemplate ()
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< PPImage > > > get_OleDefaultSubstituteImages ()
 
 ImageCollection (System::SharedPtr< Presentation > parentImmediate)
 
System::SharedPtr< PPImageFindImage (System::ArrayPtr< uint8_t > data, uint32_t crc32)
 
void Add (System::SharedPtr< PPImage > image)
 
System::SharedPtr< IPPImageAddImage (System::SharedPtr< Zip::ZipEntry > imageData)
 
System::SharedPtr< IPPImageAddNewImage (System::ArrayPtr< uint8_t > data)
 
System::SharedPtr< IPPImageAddImageFromLink (System::String imageFilePath, System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< IPPImage >>> imageFileToImage)
 
void SendMetafileRasterizationWarning ()
 
void SendGdiPlusErrorWarning (System::String partPath)
 
void SendImageFormatNotSupportedWarning (System::String imageFileName)
 
void SendNotImplementedWarning (System::String description, Warnings::WarningType warningType)
 

Static Protected Member Functions

static System::SharedPtr< System::IO::MemoryStreamCreateMemoryStream (System::SharedPtr< System::IO::Stream > stream)
 
static System::String GetExtByContentType (System::String contentType)
 

Static Protected Attributes

static const System::String gifType
 
static const System::String jpegType
 
static const System::String wmfType
 
static const System::String emfType
 
static const System::String pngType
 
static const System::String tiffType
 
static const System::String bmpType
 
static const System::String pictType
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IPPImage > >
typedef IEnumerator< System::SharedPtr< Aspose::Slides::IPPImage > > IEnumeratorType
 Enumerator type. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Represents collection of PPImage.

Constructor & Destructor Documentation

◆ ImageCollection()

Aspose::Slides::ImageCollection::ImageCollection ( System::SharedPtr< Presentation parentImmediate)
protected

Member Function Documentation

◆ Add()

void Aspose::Slides::ImageCollection::Add ( System::SharedPtr< PPImage image)
protected

◆ AddImage() [1/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< IPPImage imageSource)
virtual

Adds a copy of an image from an another presentation.

Parameters
imageSourceSource image.
Returns
Added image.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [2/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< System::Drawing::Image image)
virtual

Add an image to a presentation.

This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.

Parameters
imageImage to add.
Returns
Added image.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [3/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< System::IO::MemoryStream stream)
virtual

Add an image to a presentation from stream.

This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.

Parameters
streamStream to add image from.
Returns
Added image.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [4/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< System::IO::Stream stream)
virtual

Add an image to a presentation from stream.

This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.

Parameters
streamStream to add image from.
Returns
Added image.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [5/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< System::IO::Stream stream,
LoadingStreamBehavior  loadingStreamBehavior 
)
virtual

Creates and adds an image to a presentation from stream.

Parameters
streamStream to add image file from.
loadingStreamBehaviorThe behavior which will be applied to the stream.
Returns
Added IPPImage.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [6/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::ArrayPtr< uint8_t >  buffer)
virtual

Adds an image to a presentation from specified buffer.

Parameters
bufferBuffer.
Returns
Added image.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [7/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< ISvgImage svgImage)
virtual

Add an image to a presentation from Svg object.

Parameters
svgImageSvg image object ISvgImage
Returns
Added image.
Exceptions
ArgumentNullExceptionWhen svgImage parameter is null.

Implements Aspose::Slides::IImageCollection.

◆ AddImage() [8/8]

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImage ( System::SharedPtr< Zip::ZipEntry >  imageData)
protected

◆ AddImageFromLink()

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddImageFromLink ( System::String  imageFilePath,
System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< IPPImage >>>  imageFileToImage 
)
protected

◆ AddNewImage()

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::AddNewImage ( System::ArrayPtr< uint8_t >  data)
protected

◆ CopyTo()

void Aspose::Slides::ImageCollection::CopyTo ( System::ArrayPtr< System::SharedPtr< IPPImage >>  array,
int32_t  index 
)

◆ CreateMemoryStream()

static System::SharedPtr<System::IO::MemoryStream> Aspose::Slides::ImageCollection::CreateMemoryStream ( System::SharedPtr< System::IO::Stream stream)
staticprotected

◆ FindImage()

System::SharedPtr<PPImage> Aspose::Slides::ImageCollection::FindImage ( System::ArrayPtr< uint8_t >  data,
uint32_t  crc32 
)
protected

◆ get_AudioImage()

System::SharedPtr<PPImage> Aspose::Slides::ImageCollection::get_AudioImage ( )
protected

◆ get_Count()

int32_t Aspose::Slides::ImageCollection::get_Count ( )
virtual

Returns a number of images in the collection. Read-only int32_t.

Implements Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IPPImage > >.

◆ get_IsSynchronized()

bool Aspose::Slides::ImageCollection::get_IsSynchronized ( )
virtual

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool.

Implements Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IPPImage > >.

◆ get_NoImage()

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::get_NoImage ( )
protected

◆ get_OleDefaultSubstituteImages()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<PPImage> > > Aspose::Slides::ImageCollection::get_OleDefaultSubstituteImages ( )
protected

◆ get_OleSubstituteImageTemplate()

System::SharedPtr<PPImage> Aspose::Slides::ImageCollection::get_OleSubstituteImageTemplate ( )
protected

◆ get_Parent_Immediate()

System::SharedPtr<IDOMObject> Aspose::Slides::ImageCollection::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_SyncRoot()

System::SharedPtr<System::Object> Aspose::Slides::ImageCollection::get_SyncRoot ( )
virtual

Returns a synchronization root. Read-only object.

Implements Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::IPPImage > >.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<IPPImage> > > Aspose::Slides::ImageCollection::GetEnumerator ( )
virtual

Returns an enumerator that iterates through the collection.

Returns
A T:System::Collections::Generic::IEnumerator`1 that can be used to iterate through the collection.

Implements System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::IPPImage > >.

◆ GetExtByContentType()

static System::String Aspose::Slides::ImageCollection::GetExtByContentType ( System::String  contentType)
staticprotected

◆ idx_get()

System::SharedPtr<IPPImage> Aspose::Slides::ImageCollection::idx_get ( int32_t  index)
virtual

Gets the element at the specified index. Read-only IPPImage.

Implements Aspose::Slides::IImageCollection.

◆ SendGdiPlusErrorWarning()

void Aspose::Slides::ImageCollection::SendGdiPlusErrorWarning ( System::String  partPath)
protected

◆ SendImageFormatNotSupportedWarning()

void Aspose::Slides::ImageCollection::SendImageFormatNotSupportedWarning ( System::String  imageFileName)
protected

◆ SendMetafileRasterizationWarning()

void Aspose::Slides::ImageCollection::SendMetafileRasterizationWarning ( )
protected

◆ SendNotImplementedWarning()

void Aspose::Slides::ImageCollection::SendNotImplementedWarning ( System::String  description,
Warnings::WarningType  warningType 
)
protected

Member Data Documentation

◆ bmpType

const System::String Aspose::Slides::ImageCollection::bmpType
staticprotected

◆ emfType

const System::String Aspose::Slides::ImageCollection::emfType
staticprotected

◆ gifType

const System::String Aspose::Slides::ImageCollection::gifType
staticprotected

◆ jpegType

const System::String Aspose::Slides::ImageCollection::jpegType
staticprotected

◆ pictType

const System::String Aspose::Slides::ImageCollection::pictType
staticprotected

◆ pngType

const System::String Aspose::Slides::ImageCollection::pngType
staticprotected

◆ tiffType

const System::String Aspose::Slides::ImageCollection::tiffType
staticprotected

◆ wmfType

const System::String Aspose::Slides::ImageCollection::wmfType
staticprotected