Aspose::Pdf::XImageCollection::Replace method

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

Ersätt bild i samlingen med en annan bild.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream)
ParameterTypBeskrivning
indexint32_tIndex för samlingsobjektet som kommer att ersättas i intervallet [1..images count].
strömconst System::SharedPtr<System::IO::Stream>&Ström som innehåller bilddata (i JPEG-format).

Se även

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

Ersätt bild i samlingen med en annan bild.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream, int32_t quality)
ParameterTypBeskrivning
indexint32_tIndex för samlingsobjektet som kommer att ersättas i intervallet [1..images count].
strömconst System::SharedPtr<System::IO::Stream>&Ström som innehåller bilddata (i JPEG-format).
kvalitetint32_tJPEG-kvalitet.

Se även

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

Ersätt bild i samlingen med en annan bild.

void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream, int32_t quality, bool isBlackAndWhite)
ParameterTypBeskrivning
indexint32_tIndex för samlingsobjektet som kommer att ersättas i intervallet [1..images count].
strömconst System::SharedPtr<System::IO::Stream>&Ström som innehåller bilddata (i JPEG-format).
kvalitetint32_tKvalitet för JPEG-komprimering, i procent (giltiga värden är 0..100).
isBlackAndWhiteboolOm true, bilden komprimeras med CCITT-komprimeringsmetod som ger bättre komprimering för svart‑och‑vitt bild. Kan endast användas för svart‑och‑vitt bilder.

Se även