Draw the svg element and its children to the specified canvas inside the specified rectangle.
No ancestors or siblings are drawn. The svg element is drawn where it would be if the entire SVG was drawn.
Namespace: RSSVG
Delphi |
public |
Parameters
Element
Type: TSVGGraphicElement
Element to draw
aMatrix
Type: System.Void
cumulative transformations from the Parent element (and its Parents) to apply when drawing the element.
Canvas
Type: System.Void
Canvas to draw on
aRect
Type: System.Void
Rectangle to draw within
Even though no ancestors or siblings 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 and its children. |
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) •RSSVG.TSVGDocument.DrawBeforeElement(TSVGGraphicElement,TSVGCanvas,TSVGRect,Boolean) |