D2D_RECT_F 結構 (dcommon.h)

表示由左上角 (左、上) 座標和右下角 (右下) 座標所定義的矩形。

語法

typedef struct D2D_RECT_F {
  FLOAT left;
  FLOAT top;
  FLOAT right;
  FLOAT bottom;
} D2D_RECT_F;

成員

left

類型: FLOAT

矩形左上角的 X 座標。

top

類型: FLOAT

矩形左上角的 Y 座標。

right

類型: FLOAT

矩形右下角的 X 座標。

bottom

類型: FLOAT

矩形右下角的 Y 座標。

需求

   
最低支援的用戶端 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
標頭 dcommon.h (包含 D2d1.h)

另請參閱

D2D1_RECT_F