Table of Contents

Class ScreenSourceDialog

Namespace
VisioForge.Core.UI.WPF.Dialogs.Sources
Assembly
VisioForge.Core.dll

Dialog window for configuring screen capture sources.

public class ScreenSourceDialog : Window, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IComponentConnector

Inheritance

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

Size

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

int

FrameRate

Gets or sets the capture frame rate.

public VideoFrameRate FrameRate { get; set; }

Property Value

VideoFrameRate

FullScreen

Gets or sets a value indicating whether to capture the entire screen.

public bool FullScreen { get; set; }

Property Value

bool

GrabMouseCursor

Gets or sets a value indicating whether to include the mouse cursor in the capture.

public bool GrabMouseCursor { get; set; }

Property Value

bool

Monitor

Gets the Direct3D 9 adapter index of the selected display.

public int Monitor { get; }

Property Value

int

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

Rect

Methods

InitializeComponent()

InitializeComponent

public void InitializeComponent()