Aspose::Pdf::Page::AddImage method

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)
ParameterTypeDescription
imageStreamSystem::SharedPtr<System::IO::Stream>The stream of the image.
imageRectSystem::SharedPtr<Aspose::Pdf::Rectangle>The default position of the image on page.
imageWidthint32_tThe width of the image.
imageHeightint32_tThe height of the image.
saveImageProportionsboolIf the flag set to true than image placed in rectangle position; otherwise, the size of rectange is becoming equal to image size.
bboxSystem::SharedPtr<Aspose::Pdf::Rectangle>The bbox of the image.

See Also

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)
ParameterTypeDescription
imageStreamSystem::SharedPtr<System::IO::Stream>The stream of the image.
imageRectSystem::SharedPtr<Aspose::Pdf::Rectangle>The position of the image.
bboxSystem::SharedPtr<Aspose::Pdf::Rectangle>Bbox of the image.

See Also

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)
ParameterTypeDescription
hocrSystem::StringThe hocr of the image.
imageStreamSystem::SharedPtr<System::IO::Stream>The stream of the image.
imageRectSystem::SharedPtr<Aspose::Pdf::Rectangle>The position of the image.
bboxSystem::SharedPtr<Aspose::Pdf::Rectangle>The bbox of the image.

See Also

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)
ParameterTypeDescription
imagePathSystem::StringThe path to image.
rectangleSystem::SharedPtr<Aspose::Pdf::Rectangle>The position of the image.

See Also