GraphicsCaptureItem Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The target of the capture, chosen with the picker control.
public ref class GraphicsCaptureItem sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GraphicsCaptureItem final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GraphicsCaptureItem
Public NotInheritable Class GraphicsCaptureItem
- Inheritance
- Attributes
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Windows version | SDK version | Value added |
---|---|---|
1809 | 17763 | CreateFromVisual |
Display |
The display name of the target of the capture (for example, the application title). |
Size |
The size of the target of the capture. |
Create |
Constructs a GraphicsCaptureItem that represents the given Visual. |
Try |
Attempts to create a GraphicsCaptureItem that represents the display with the specified DisplayId. |
Try |
Attempts to create a GraphicsCaptureItem that represents the window with the specified WindowId. |
Closed |
An event raised when the target of the capture has been closed. |
Product | Versions |
---|---|
WinRT | Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |