Modifies the input rectangle R to be centered within the bounding rectangle. The modified R rectangle is returned.
Namespace: RSGraphics
Delphi
|
function CenterRect( var R: TRect; const Bounds: TRect ): TRect; overload;
|
Parameters
R
Type: TRect
Rectangle to center
Bounds
Type: TRect
Bounding rectangle
Return Value
Type: TRect
Reference
•RSGraphics.OffsetRSRect(TRSRect,Single,Single) •RSGraphics.RSCenterPoint(TRSPoint,TRSPoint,Single) •RSGraphics.CenterRect(Integer,Integer,Integer,Integer) •RSGraphics.CenterRect(TPoint,Integer,Integer) •RSGraphics.CenterRect(TRSGfxFloat,TRSGfxFloat,TRSGfxFloat,TRSGfxFloat) •RSGraphics.CenterRect(TRSPoint,TRSGfxFloat,TRSGfxFloat) •RSGraphics.CenterRect(TRSRect,TRSRect) •RSGraphics |