Draw the sibling svg elements (and their children) of the specified element (i.e., the elements that have the same parent but are after the specified element in the parent's Items property) to the specified canvas inside the specified rectangle.
No ancestors are drawn. The svg sibling elements are drawn where they would be if the entire SVG was drawn.
Namespace: FMX.RS.SVG
Delphi |
public |
Parameters
Element
Type: TSVGGraphicElement
Draw "younger" siblings 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
Even though no ancestors or siblings before the current element are drawn, this method does call the Draw method of every ancestor and "older" sibling to ensure the transformation matrix and clipping rectangles are properly initialized before drawing the element's "younger" siblings. |
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) •FMX.RS.SVG.TSVGDocument.DrawBeforeElement(TSVGGraphicElement,TSVGCanvas,TSVGRect,Boolean) |