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)
| Parameter | Type | Description |
|---|---|---|
| elements | const System::SharedPtr<Aspose::Pdf::Vector::GraphicElementCollection>& | Graphics collection. |
| rectangle | const 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
- Typedef SharedPtr
- Class GraphicElementCollection
- Class Rectangle
- Class Page
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++