Show/Hide Toolbars

RiverSoftAVG Products Help

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

FitRect(TRect,TRect,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



Type: TRect

Rectangle to scale and translate


Type: TRect

Boundary rectangle


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