ID2D1CommandSink::D rawRectangle メソッド (d2d1_1.h)

四角形を描きます。

構文

HRESULT DrawRectangle(
  [in]           const D2D1_RECT_F *rect,
  [in]           ID2D1Brush        *brush,
                 FLOAT             strokeWidth,
  [in, optional] ID2D1StrokeStyle  *strokeStyle
);

パラメーター

[in] rect

型: const D2D1_RECT_F*

コマンド シンクに描画する四角形。

[in] brush

種類: ID2D1Brush*

ジオメトリのストロークに使用するブラシ。

strokeWidth

型: FLOAT

ストロークの幅。

[in, optional] strokeStyle

種類: ID2D1StrokeStyle*

ストロークのスタイル。

戻り値

型: HRESULT

メソッドが成功すると、 S_OKが返されます。 失敗した場合は、 HRESULT エラー コードが返されます。

要件

要件
サポートされている最小のクライアント Windows 7 のWindows 8とプラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 R2 のWindows Server 2012とプラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
対象プラットフォーム Windows
ヘッダー d2d1_1.h
[DLL] D2d1.dll

こちらもご覧ください

ID2D1CommandList::Stream

ID2D1CommandSink

ID2D1RenderTarget::D rawRectangle