次の方法で共有


IDCompositionDevice::CreateRotateTransform メソッド (dcomp.h)

2D 回転変換オブジェクトを作成します。

構文

HRESULT CreateRotateTransform(
  [out] IDCompositionRotateTransform **rotateTransform
);

パラメーター

[out] rotateTransform

型: IDCompositionRotateTransform**

新しい回転変換オブジェクト。 このパラメーターを NULL にすることはできません。

戻り値

型: HRESULT

関数が成功した場合は、S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。 エラー コードの一覧については、「 DirectComposition エラー コード 」を参照してください。

解説

新しい 2D 回転変換オブジェクトは、Angle、CenterX、CenterY の各プロパティに対して 0 の静的な値を持ちます。

要件

   
サポートされている最小のクライアント Windows 8 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2012 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー dcomp.h
Library Dcomp.lib
[DLL] Dcomp.dll

関連項目

IDCompositionDevice

IDCompositionVisual::SetTransform