-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathMicrosoft.Windows.Graphics.Capture.idl
More file actions
24 lines (21 loc) · 1.21 KB
/
Microsoft.Windows.Graphics.Capture.idl
File metadata and controls
24 lines (21 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.
namespace Microsoft.Windows.Graphics.Capture
{
[contractversion(1)]
apicontract GraphicsCaptureContract {};
/// Provides factory methods for creating Windows.Graphics.Capture.GraphicsCaptureItem objects
/// using WinAppSDK interop types, bridging the gap between Microsoft.UI.WindowId /
/// Microsoft.UI.DisplayId and the Windows.UI.WindowId / Windows.UI.DisplayId types
/// expected by the Windows.Graphics.Capture APIs.
[contract(GraphicsCaptureContract, 1)]
static runtimeclass GraphicsCaptureItem
{
/// Creates a GraphicsCaptureItem for the window identified by the given WindowId.
/// Returns null if the WindowId is invalid or the window cannot be captured.
static Windows.Graphics.Capture.GraphicsCaptureItem TryCreateFromWindowId(Microsoft.UI.WindowId windowId);
/// Creates a GraphicsCaptureItem for the display identified by the given DisplayId.
/// Returns null if the DisplayId is invalid or the display cannot be captured.
static Windows.Graphics.Capture.GraphicsCaptureItem TryCreateFromDisplayId(Microsoft.UI.DisplayId displayId);
};
}