Aspose::Pdf::XImageCollection::Replace method

XImageCollection::Replace(int32_t, System::SharedPtr<System::IO::Stream>) method

Replace image in collection with another image.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, System::SharedPtr<System::IO::Stream> stream)
ParameterTypeDescription
indexint32_tIndex of collection item which will be replaced in [1..images count] range.
streamSystem::SharedPtr<System::IO::Stream>Stream containing image data (in JPEG format).

See Also

XImageCollection::Replace(int32_t, System::SharedPtr<System::IO::Stream>, int32_t) method

Replace image in collection with another image.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, System::SharedPtr<System::IO::Stream> stream, int32_t quality)
ParameterTypeDescription
indexint32_tIndex of collection item which will be replaced in [1..images count] range.
streamSystem::SharedPtr<System::IO::Stream>Stream containing image data (in JPEG format).
qualityint32_tJPEG quality.

See Also

XImageCollection::Replace(int32_t, System::SharedPtr<System::IO::Stream>, int32_t, bool) method

Replace image in collection with another image.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, System::SharedPtr<System::IO::Stream> stream, int32_t quality, bool isBlackAndWhite)
ParameterTypeDescription
indexint32_tIndex of collection item which will be replaced in [1..images count] range.
streamSystem::SharedPtr<System::IO::Stream>Stream containing image data (in JPEG format).
qualityint32_tQuality of JPEG compression, in percent (valid vaues are 0..100).
isBlackAndWhiteboolIf true, image is compressed with CCITT compression method which provides better compression for black nad white image. May be used only for black and white images.

See Also