Scales and translates the input rectangle, aRect, so that it fits into the boundaries of the BoundsRect. The function returns the ratio the input rectangle needed to grow to fit within the boundary rectangle.
Namespace: FMX.RS.Graphics
Delphi |
function FitRect( var aRect: TRect; const BoundsRect: TRect; Grow: Boolean = False ): Single; overload; |
Parameters
aRect
Type: TRect
Rectangle to scale and translate
BoundsRect
Type: TRect
Boundary rectangle
Grow
Type: Boolean
Controls whether the input rect is scaled as well as translated
Type: Single