Aspose::Pdf::Page::AddImage método

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

Agrega una imagen a la página y la coloca en el centro del rectángulo especificado conservando la proporción de la imagen.

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)
ParámetroTipoDescripción
imageStreamconst System::SharedPtr<System::IO::Stream>&El flujo de la imagen.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&La posición de la imagen.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&Bbox de la imagen.
autoAdjustRectangleboolAjustar la imagen al centro del rectángulo de entrada.

Ver también

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

Agrega una imagen a la página y la coloca según la posición del rectángulo de la imagen.

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)
ParámetroTipoDescripción
imageStreamconst System::SharedPtr<System::IO::Stream>&El flujo de la imagen.
imageRectSystem::SharedPtr<Aspose::Pdf::Rectangle>La posición predeterminada de la imagen en la página.
imageWidthint32_tEl ancho de la imagen.
imageHeightint32_tLa altura de la imagen.
saveImageProportionsboolSi la bandera se establece en true, la imagen se coloca en la posición del rectángulo; de lo contrario, el tamaño del rectángulo se vuelve igual al tamaño de la imagen.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&El bbox de la imagen.

Ver también

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

Agrega una imagen buscable a la página y la coloca en el centro del rectángulo especificado conservando la proporción de la imagen.

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)
ParámetroTipoDescripción
hocrconst System::String&El hocr de la imagen.
imageStreamconst System::SharedPtr<System::IO::Stream>&El flujo de la imagen.
imageRectconst System::SharedPtr<Aspose::Pdf::Rectangle>&La posición de la imagen.
bboxconst System::SharedPtr<Aspose::Pdf::Rectangle>&El bbox de la imagen.

Ver también

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

Agrega una imagen a la página y la coloca en el centro del rectángulo especificado conservando la proporción de la imagen.

void Aspose::Pdf::Page::AddImage(const System::String &imagePath, const System::SharedPtr<Aspose::Pdf::Rectangle> &rectangle)
ParámetroTipoDescripción
imagePathconst System::String&La ruta a la imagen.
rectangleconst System::SharedPtr<Aspose::Pdf::Rectangle>&La posición de la imagen.

Ver también