다음을 통해 공유


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 하는 비동기 작업입니다.

특성

적용 대상