Aspose::Pdf::XImageCollection::Replace method
Contents
[
Hide
]XImageCollection::Replace(int32_t, const System::SharedPtr<System::IO::Stream>&) method
Replace image in collection with another image.
void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream)
| Parameter | Type | Description |
|---|---|---|
| index | int32_t | Index of collection item which will be replaced in [1..images count] range. |
| stream | const System::SharedPtr<System::IO::Stream>& | Stream containing image data (in JPEG format). |
See Also
- Typedef SharedPtr
- Class Stream
- Class XImageCollection
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
XImageCollection::Replace(int32_t, const System::SharedPtr<System::IO::Stream>&, int32_t) method
Replace image in collection with another image.
void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream, int32_t quality)
| Parameter | Type | Description |
|---|---|---|
| index | int32_t | Index of collection item which will be replaced in [1..images count] range. |
| stream | const System::SharedPtr<System::IO::Stream>& | Stream containing image data (in JPEG format). |
| quality | int32_t | JPEG quality. |
See Also
- Typedef SharedPtr
- Class Stream
- Class XImageCollection
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
XImageCollection::Replace(int32_t, const System::SharedPtr<System::IO::Stream>&, int32_t, bool) method
Replace image in collection with another image.
void Aspose::Pdf::XImageCollection::Replace(int32_t index, const System::SharedPtr<System::IO::Stream> &stream, int32_t quality, bool isBlackAndWhite)
| Parameter | Type | Description |
|---|---|---|
| index | int32_t | Index of collection item which will be replaced in [1..images count] range. |
| stream | const System::SharedPtr<System::IO::Stream>& | Stream containing image data (in JPEG format). |
| quality | int32_t | Quality of JPEG compression, in percent (valid vaues are 0..100). |
| isBlackAndWhite | bool | If 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
- Typedef SharedPtr
- Class Stream
- Class XImageCollection
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++