Aspose::Pdf::Page::AddImage method
Contents
[
Hide
]Page::AddImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Pdf::Rectangle>, int32_t, int32_t, bool, System::SharedPtr<Aspose::Pdf::Rectangle>) method
Adds image on page and places it depend on image rectangle position.
void Aspose::Pdf::Page::AddImage(System::SharedPtr<System::IO::Stream> imageStream, System::SharedPtr<Aspose::Pdf::Rectangle> imageRect, int32_t imageWidth, int32_t imageHeight, bool saveImageProportions, System::SharedPtr<Aspose::Pdf::Rectangle> bbox=nullptr)
Parameter | Type | Description |
---|---|---|
imageStream | System::SharedPtr<System::IO::Stream> | The stream of the image. |
imageRect | System::SharedPtr<Aspose::Pdf::Rectangle> | The default position of the image on page. |
imageWidth | int32_t | The width of the image. |
imageHeight | int32_t | The height of the image. |
saveImageProportions | bool | If the flag set to true than image placed in rectangle position; otherwise, the size of rectange is becoming equal to image size. |
bbox | System::SharedPtr<Aspose::Pdf::Rectangle> | The bbox of the image. |
See Also
- Typedef SharedPtr
- Class Stream
- Class Rectangle
- Class Page
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
Page::AddImage(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Pdf::Rectangle>, System::SharedPtr<Aspose::Pdf::Rectangle>) method
Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
void Aspose::Pdf::Page::AddImage(System::SharedPtr<System::IO::Stream> imageStream, System::SharedPtr<Aspose::Pdf::Rectangle> imageRect, System::SharedPtr<Aspose::Pdf::Rectangle> bbox=nullptr)
Parameter | Type | Description |
---|---|---|
imageStream | System::SharedPtr<System::IO::Stream> | The stream of the image. |
imageRect | System::SharedPtr<Aspose::Pdf::Rectangle> | The position of the image. |
bbox | System::SharedPtr<Aspose::Pdf::Rectangle> | Bbox of the image. |
See Also
- Typedef SharedPtr
- Class Stream
- Class Rectangle
- Class Page
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
Page::AddImage(System::String, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Aspose::Pdf::Rectangle>, System::SharedPtr<Aspose::Pdf::Rectangle>) method
Adds searchable image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
void Aspose::Pdf::Page::AddImage(System::String hocr, System::SharedPtr<System::IO::Stream> imageStream, System::SharedPtr<Aspose::Pdf::Rectangle> imageRect, System::SharedPtr<Aspose::Pdf::Rectangle> bbox=nullptr)
Parameter | Type | Description |
---|---|---|
hocr | System::String | The hocr of the image. |
imageStream | System::SharedPtr<System::IO::Stream> | The stream of the image. |
imageRect | System::SharedPtr<Aspose::Pdf::Rectangle> | The position of the image. |
bbox | System::SharedPtr<Aspose::Pdf::Rectangle> | The bbox of the image. |
See Also
- Class String
- Typedef SharedPtr
- Class Stream
- Class Rectangle
- Class Page
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
Page::AddImage(System::String, System::SharedPtr<Aspose::Pdf::Rectangle>) method
Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
void Aspose::Pdf::Page::AddImage(System::String imagePath, System::SharedPtr<Aspose::Pdf::Rectangle> rectangle)
Parameter | Type | Description |
---|---|---|
imagePath | System::String | The path to image. |
rectangle | System::SharedPtr<Aspose::Pdf::Rectangle> | The position of the image. |
See Also
- Class String
- Typedef SharedPtr
- Class Rectangle
- Class Page
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++