System.Types.UnionRect

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function UnionRect(out Rect: TRect; const R1, R2: TRect): Boolean;
function UnionRect(out Rect: TRectF; const R1, R2: TRectF): Boolean;
function UnionRect(const ARect1, ARect2: TRect): TRect;
function UnionRect(const ARect1, ARect2: TRectF): TRectF;

C++

extern DELPHI_PACKAGE bool __fastcall UnionRect(/* out */ TRect &Rect, const TRect &R1, const TRect &R2)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.Types.pas
System.Types.hpp
System.Types System.Types


説明

2 つの四角形の和集合(2 つの四角形をちょうど包含する四角形)を返します。

UnionRect を呼び出すと、R1 と R2 を包含する最小の四角形を取得することができます。和集合は Rect パラメータで返されます。

UnionRect は、結果として返される四角形が空でなければ、True を返します。結果の四角形が、幅または高さが 0 以下の場合、UnionRect は False を返します。

関連項目

コード サンプル