Table of Contents

Class ScreenCaptureGDISourceSettings Deprecated

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

Screen capture GDI source settings.

[Obsolete("Use ScreenCaptureD3D11SourceSettings. GDI screen capture is deprecated with gdiscreencapsrc. UpdateLiveSettings stores the position of a non-empty Rectangle and the cursor for the next start and does not change a running capture.", false)]
public class ScreenCaptureGDISourceSettings : IScreenCaptureSourceSettings, IVideoCaptureBaseVideoSourceSettings, IVideoSourceSettings, IMediaBlockSettings

Inheritance

Implements

Inherited Members

Constructors

ScreenCaptureGDISourceSettings()

Initializes a new instance of the VisioForge.Core.Types.X.Sources.ScreenCaptureGDISourceSettings class.

public ScreenCaptureGDISourceSettings()

Properties

CaptureCursor

Gets or sets a value indicating whether mouse cursor capture is enabled.

public bool CaptureCursor { get; set; }

Property Value

bool

FrameRate

Gets or sets the frame rate.

public VideoFrameRate FrameRate { get; set; }

Property Value

VideoFrameRate

Monitor

Gets or sets the monitor ID, starting from 0.

public int Monitor { get; set; }

Property Value

int

MouseHighlight

Gets or sets the mouse click highlight settings. When not null, mouse click positions are drawn as animated expanding circles on the captured screen video. Set to null to disable mouse click highlighting.

public MouseHighlightSettings MouseHighlight { get; set; }

Property Value

MouseHighlightSettings

Rectangle

Gets or sets the rectangle to capture.

public Rect Rectangle { get; set; }

Property Value

Rect

Remarks

An empty rectangle (all four edges zero), the default, captures the whole monitor that VisioForge.Core.Types.X.Sources.ScreenCaptureGDISourceSettings.Monitor selects, at the size the element measures it. A rectangle is in pixels of the process's DPI awareness, relative to that monitor; null does not start. VisioForge.Core.Types.X.Sources.ScreenCaptureGDISourceSettings.UpdateLiveSettings(System.Int32,System.Int32,System.Boolean) moves only a rectangle that is not empty.

Methods

CreateBlock()

Creates the block.

public MediaBlock CreateBlock()

Returns

MediaBlock

MediaBlock.

GetSourceType()

Gets the type of the source.

public ScreenCaptureSourceType GetSourceType()

Returns

ScreenCaptureSourceType

ScreenCaptureSourceType.

UpdateLiveSettings(int, int, bool)

Stores the position of a rectangle that is not empty, and the cursor, for the next start.

public void UpdateLiveSettings(int x, int y, bool cursor)

Parameters

x int

The x.

y int

The y.

cursor bool

if set to true show cursor.

Remarks

A running GDI capture does not move and does not change the cursor. Use VisioForge.Core.Types.X.Sources.ScreenCaptureD3D11SourceSettings to change them while capture is running.

OnUpdated

Occurs when on updated.

public event EventHandler<EventArgs> OnUpdated

Event Type

EventHandler<EventArgs>