Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.36 KB

compositiongraphicsdevice_captureasync_1531193196.md

File metadata and controls

49 lines (26 loc) · 1.36 KB
-api-id -api-type
M:Microsoft.UI.Composition.CompositionGraphicsDevice.CaptureAsync(Microsoft.UI.Composition.Visual,Windows.Graphics.SizeInt32,Microsoft.Graphics.DirectX.DirectXPixelFormat,Microsoft.Graphics.DirectX.DirectXAlphaMode,System.Single)
winrt method

Microsoft.UI.Composition.CompositionGraphicsDevice.CaptureAsync(Microsoft.UI.Composition.Visual,Windows.Graphics.SizeInt32,Microsoft.Graphics.DirectX.DirectXPixelFormat,Microsoft.Graphics.DirectX.DirectXAlphaMode,System.Single)

-description

Captures various source elements, including visual trees owned by an application, to a composition surface.

-parameters

-param captureVisual

The visual to capture.

-param size

The size in pixels of the surface.

-param pixelFormat

The pixel format of the surface.

-param alphaMode

How the alpha channel should be handled.

-param sdrBoost

The amount to boost SDR.

-returns

An asynchronous operation that returns an ICompositionSurface upon successful completion.

-remarks

-see-also

-examples