Aspose::Pdf::Page::AddGraphics method

Page::AddGraphics method

Adds graphics to the page. Works faster than adding elements one by one with GraphicElement::AddOnPage(Page) method.

void Aspose::Pdf::Page::AddGraphics(const System::SharedPtr<Aspose::Pdf::Vector::GraphicElementCollection> &elements, const System::SharedPtr<Aspose::Pdf::Rectangle> &rectangle=nullptr)
ParameterTypeDescription
elementsconst System::SharedPtr<Aspose::Pdf::Vector::GraphicElementCollection>&Graphics collection.
rectangleconst System::SharedPtr<Aspose::Pdf::Rectangle>&Elements will be added to the page if it’s
GraphicElement::Position

is inside the rectangle area. If rectangle is null, all graphic elements will be added |

See Also