Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.Graphics > Routines

FitRect(TRSRect,TRSRect,Boolean) Method

Scroll Prev Top Next More

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

Parameters

aRect

Type: System.Void

Rectangle to scale and translate

BoundsRect

Type: System.Void

Boundary rectangle

Grow

Type: Boolean

Controls whether the input rect is scaled as well as translated

Return Value

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb