Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > 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: RSGraphics

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

Return Value

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb