CompositionGraphicsDevice.CaptureAsync メソッド

定義

アプリケーションが所有するビジュアル ツリーなど、さまざまなソース要素をコンポジション サーフェイスにキャプチャします。

public:
 virtual IAsyncOperation<ICompositionSurface ^> ^ CaptureAsync(Visual ^ captureVisual, SizeInt32 size, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode, float sdrBoost) = CaptureAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ICompositionSurface> CaptureAsync(Visual const& captureVisual, SizeInt32 const& size, DirectXPixelFormat const& pixelFormat, DirectXAlphaMode const& alphaMode, float const& sdrBoost);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ICompositionSurface> CaptureAsync(Visual captureVisual, SizeInt32 size, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode, float sdrBoost);
function captureAsync(captureVisual, size, pixelFormat, alphaMode, sdrBoost)
Public Function CaptureAsync (captureVisual As Visual, size As SizeInt32, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode, sdrBoost As Single) As IAsyncOperation(Of ICompositionSurface)

パラメーター

captureVisual
Visual

キャプチャするビジュアル。

size
SizeInt32

サーフェスのサイズ (ピクセル単位)。

pixelFormat
DirectXPixelFormat

サーフェスのピクセル形式。

alphaMode
DirectXAlphaMode

アルファ チャネルの処理方法。

sdrBoost
Single

float

SDR をブーストする量。

戻り値

正常に完了したときに を ICompositionSurface 返す非同期操作。

属性

Windows の要件

デバイス ファミリ
Windows 10, version 2104 (10.0.20348.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v12.0 で導入)

適用対象