Aspose::Pdf::Page::AddImage metod

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

Lägger till en bild på sidan och placerar den i mitten av den angivna rektangeln samtidigt som bildens proportion bevaras.

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)
ParameterTypBeskrivning
imageStreamconst System::SharedPtr<System::IO::Stream>&Strömmen för bilden.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&Positionen för bilden.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&Bbox för bilden.
autoAdjustRectangleboolJustera bilden i mitten av den angivna rektangeln.

Se även

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

Lägger till en bild på sidan och placerar den beroende på bildens rektangelposition.

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)
ParameterTypBeskrivning
imageStreamconst System::SharedPtr<System::IO::Stream>&Strömmen för bilden.
imageRectSystem::SharedPtr<Aspose::Pdf::Rectangle>Standardpositionen för bilden på sidan.
imageWidthint32_tBredden på bilden.
imageHeightint32_tHöjden på bilden.
saveImageProportionsboolOm flaggan är satt till true placeras bilden i rektangelns position; annars blir rektangelns storlek lika med bildens storlek.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&Bbox för bilden.

Se även

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

Lägger till en sökbar bild på sidan och placerar den i mitten av den angivna rektangeln samtidigt som bildens proportion bevaras.

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)
ParameterTypBeskrivning
hocrconst System::String&Hocr för bilden.
imageStreamconst System::SharedPtr<System::IO::Stream>&Strömmen för bilden.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&Positionen för bilden.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&Bbox för bilden.

Se även

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

Lägger till en bild på sidan och placerar den i mitten av den angivna rektangeln samtidigt som bildens proportion bevaras.

void Aspose::Pdf::Page::AddImage(const System::String &imagePath, const System::SharedPtr<Aspose::Pdf::Rectangle> &rectangle)
ParameterTypBeskrivning
imagePathconst System::String&Sökvägen till bilden.
rectangleconst System::SharedPtr<Aspose::Pdf::Rectangle>&Positionen för bilden.

Se även