GraphicsCaptureSession Class
Definition
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.
Allows the application to take screen captures.
public ref class GraphicsCaptureSession sealed : IClosable
/// [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 GraphicsCaptureSession final : IClosable
[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 GraphicsCaptureSession : System.IDisposable
Public NotInheritable Class GraphicsCaptureSession
Implements IDisposable
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
2004 | 19041 | IsCursorCaptureEnabled |
Properties
DirtyRegionMode | |
IncludeSecondaryWindows | |
IsBorderRequired |
Gets or sets a value specifying whether the capture operation requires a colored border around the window or display to indicate that a capture is in progress. |
IsCursorCaptureEnabled |
Gets or sets a value specifying whether the capture session will include the cursor in the captured content. |
MinUpdateInterval |
Methods
Close() |
Closes the capture session and releases resources. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
IsSupported() |
Returns true if screen capture is supported on the device. |
StartCapture() |
Starts the capture session, allowing the application to capture frames. |