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(System::SharedPtr<Vector::GraphicElementCollection> elements, System::SharedPtr<Aspose::Pdf::Rectangle> rectangle=nullptr)
ParameterTypeDescription
elementsSystem::SharedPtr<Vector::GraphicElementCollection>Graphics collection.
rectangleSystem::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