Class ScreenSourceDialog
- Assembly
- VisioForge.Core.dll
Dialog window for configuring screen capture sources.
public class ScreenSourceDialog : Window, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IComponentConnectorInheritance
Implements
Inherited Members
Remarks
This dialog provides a user interface for setting up screen capture parameters, allowing users to capture their desktop, specific monitors, or defined screen regions. It supports multi-monitor setups and provides options for capturing mouse cursors and setting capture frame rates.
Key features: - Multi-monitor support with display selection - Full screen or custom region capture - Mouse cursor capture option - Configurable frame rate for performance optimization - Real-time preview of capture settings
Common use cases: - Screen recording applications - Live streaming software - Remote desktop applications - Tutorial and presentation recording - Game capture and broadcasting
Performance considerations: - Higher frame rates require more CPU/GPU resources - Large capture areas impact performance - Mouse cursor capture adds minimal overhead - Hardware acceleration available on supported platforms
Constructors
ScreenSourceDialog()
Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.Sources.ScreenSourceDialog class. Sets up the dialog for screen capture configuration.
public ScreenSourceDialog()Properties
CaptureSize
Gets the size of the video that the capture settings of this dialog produce, in physical pixels.
public Size CaptureSize { get; }Property Value
Remarks
The full-screen size is measured in physical pixels at any DPI awareness of the host, so it is the size the DirectX 9 capture element delivers, not the virtual-desktop size Bounds reports.
DisplayIndex
Gets or sets the display/monitor index for screen capture.
public int DisplayIndex { get; set; }Property Value
FrameRate
Gets or sets the capture frame rate.
public VideoFrameRate FrameRate { get; set; }Property Value
FullScreen
Gets or sets a value indicating whether to capture the entire screen.
public bool FullScreen { get; set; }Property Value
GrabMouseCursor
Gets or sets a value indicating whether to include the mouse cursor in the capture.
public bool GrabMouseCursor { get; set; }Property Value
Monitor
Gets the Direct3D 9 adapter index of the selected display.
public int Monitor { get; }Property Value
Remarks
VisioForge.Core.UI.WPF.Dialogs.Sources.ScreenSourceDialog.DisplayIndex is a position in AllScreens, which lists the primary display first; the capture element numbers the monitors of the Direct3D 9 adapters, and on a machine with more than one GPU the two orders name different monitors.
Rectangle
Gets or sets the capture rectangle when not capturing full screen.
public Rect Rectangle { get; set; }Property Value
Methods
InitializeComponent()
InitializeComponent
public void InitializeComponent()