Aspose::Pdf::Page::AddImage method

Page::AddImage(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Pdf::Rectangle>&, const System::SharedPtr<Aspose::Pdf::Rectangle>&, bool) method

Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.

void Aspose::Pdf::Page::AddImage(const System::SharedPtr<System::IO::Stream> &imageStream, const System::SharedPtr<Aspose::Pdf::Rectangle> &imageRect, const System::SharedPtr<Aspose::Pdf::Rectangle> &bbox=nullptr, bool autoAdjustRectangle=true)
ParameterTypeDescription
imageStreamconst System::SharedPtr<System::IO::Stream>&The stream of the image.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&The position of the image.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&Bbox of the image.
autoAdjustRectangleboolAdjust image in center of the input rectangle.

See Also

Page::AddImage(const System::SharedPtr<System::IO::Stream>&, System::SharedPtr<Aspose::Pdf::Rectangle>, int32_t, int32_t, bool, const System::SharedPtr<Aspose::Pdf::Rectangle>&) method

Adds image on page and places it depend on image rectangle position.

void Aspose::Pdf::Page::AddImage(const System::SharedPtr<System::IO::Stream> &imageStream, System::SharedPtr<Aspose::Pdf::Rectangle> imageRect, int32_t imageWidth, int32_t imageHeight, bool saveImageProportions, const System::SharedPtr<Aspose::Pdf::Rectangle> &bbox=nullptr)
ParameterTypeDescription
imageStreamconst System::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.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&The bbox of the image.

See Also

Page::AddImage(const System::String&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Pdf::Rectangle>&, const 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(const System::String &hocr, const System::SharedPtr<System::IO::Stream> &imageStream, const System::SharedPtr<Aspose::Pdf::Rectangle> &imageRect, const System::SharedPtr<Aspose::Pdf::Rectangle> &bbox=nullptr)
ParameterTypeDescription
hocrconst System::String&The hocr of the image.
imageStreamconst System::SharedPtr<System::IO::Stream>&The stream of the image.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&The position of the image.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&The bbox of the image.

See Also

Page::AddImage(const System::String&, const 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(const System::String &imagePath, const System::SharedPtr<Aspose::Pdf::Rectangle> &rectangle)
ParameterTypeDescription
imagePathconst System::String&The path to image.
rectangleconst System::SharedPtr<Aspose::Pdf::Rectangle>&The position of the image.

See Also