Navigation: Code Documentation > RSVclSVG > RSSVG > Classes > TSVGElement > Methods
TSVGElement.FitToRect(TSVGRect) Method
Returns a transformation matrix that will properly scale and translate the SVG element's BoundsRect so that it fits within the input rectangle
Namespace: RSSVG
Delphi
public function FitToRect( aRect: TSVGRect ): TSVGMatrix; overload;
Parameters
aRect
Type: System.Void
Type: TSVGMatrix
•RSSVG.TSVGElement.FitToRect(TSVGRect,TSVGRect)
•TSVGElement
•RSSVG