Draw the sibling svg elements (and their children) of the specified element (i.e., the elements that have the same parent but are before the specified element in the parent's Items property) to the specified canvas inside the specified rectangle.
The ancestors of the specified element are also drawn. The svg sibling elements are drawn where they would be if the entire SVG was drawn.
Namespace: RSSVG
Delphi |
public |
Parameters
Element
Type: TSVGGraphicElement
Draw "older" siblings (and ancestors)of this element
Canvas
Type: System.Void
Canvas to draw on
aRect
Type: System.Void
Rectangle to draw within
IncludeElement
Type: Boolean
Draw element and its children as well
The following example uses the DrawBeforeElement, DrawElement, and DrawAfterElement methods to optimize the drawing of an svg where one element may be changed often (such as in an editor):
|
Reference•Draw(TSVGCanvas,TSVGRect) •Draw(TSVGMatrix,TCanvas,TRect) •DrawElement(TSVGGraphicElement,TCanvas,TSVGRect) •RSSVG.TSVGDocument.DrawAfterElement(TSVGGraphicElement,TSVGCanvas,TSVGRect,Boolean) |