C# Class Capture.Interface.CaptureInterface

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: remcoros/Direct3DCapture Class Usage Examples

Méthodes publiques

Méthode Description
BeginGetScreenshot ( Rectangle region, System.TimeSpan timeout, AsyncCallback callback = null ) : IAsyncResult
Disconnect ( ) : void

Tell the client process to disconnect

DisplayInGameText ( string text ) : void

Display text in-game for the default duration of 5 seconds

DisplayInGameText ( string text, System.TimeSpan duration ) : void

EndGetScreenshot ( IAsyncResult result ) : Screenshot
GetScreenshot ( ) : Screenshot

Get a fullscreen screenshot with the default timeout of 2 seconds

GetScreenshot ( Rectangle region, System.TimeSpan timeout ) : Screenshot

Get a screenshot of the specified region

Message ( MessageType messageType, string format ) : void

Send a message to all handlers of CaptureInterface.RemoteMessage.

Ping ( ) : void

Used

SendScreenshotResponse ( Screenshot screenshot ) : void
StartRecording ( Capture.Interface.CaptureConfig config ) : void

If not IsRecording will invoke the RecordingStarted event, starting a new recording.

Handlers in the server and remote process will be be invoked.

StopRecording ( ) : void

If IsRecording, will invoke the RecordingStopped event, finalising any existing recording.

Handlers in the server and remote process will be be invoked.

Private Methods

Méthode Description
SafeInvokeDisconnected ( ) : void
SafeInvokeDisplayText ( Capture.Interface.DisplayTextEventArgs displayTextEventArgs ) : void
SafeInvokeMessageRecevied ( Capture.Interface.MessageReceivedEventArgs eventArgs ) : void
SafeInvokeRecordingStarted ( Capture.Interface.CaptureConfig config ) : void
SafeInvokeRecordingStopped ( ) : void
SafeInvokeScreenshotReceived ( Capture.Interface.ScreenshotReceivedEventArgs eventArgs ) : void
SafeInvokeScreenshotRequested ( Capture.Interface.ScreenshotRequest eventArgs ) : void

Method Details

BeginGetScreenshot() public méthode

public BeginGetScreenshot ( Rectangle region, System.TimeSpan timeout, AsyncCallback callback = null ) : IAsyncResult
region System.Drawing.Rectangle
timeout System.TimeSpan
callback AsyncCallback
Résultat IAsyncResult

Disconnect() public méthode

Tell the client process to disconnect
public Disconnect ( ) : void
Résultat void

DisplayInGameText() public méthode

Display text in-game for the default duration of 5 seconds
public DisplayInGameText ( string text ) : void
text string
Résultat void

DisplayInGameText() public méthode

public DisplayInGameText ( string text, System.TimeSpan duration ) : void
text string
duration System.TimeSpan
Résultat void

EndGetScreenshot() public méthode

public EndGetScreenshot ( IAsyncResult result ) : Screenshot
result IAsyncResult
Résultat Screenshot

GetScreenshot() public méthode

Get a fullscreen screenshot with the default timeout of 2 seconds
public GetScreenshot ( ) : Screenshot
Résultat Screenshot

GetScreenshot() public méthode

Get a screenshot of the specified region
public GetScreenshot ( Rectangle region, System.TimeSpan timeout ) : Screenshot
region System.Drawing.Rectangle the region to capture (x=0,y=0 is top left corner)
timeout System.TimeSpan maximum time to wait for the screenshot
Résultat Screenshot

Message() public méthode

Send a message to all handlers of CaptureInterface.RemoteMessage.
public Message ( MessageType messageType, string format ) : void
messageType MessageType
format string
Résultat void

Ping() public méthode

Used
public Ping ( ) : void
Résultat void

SendScreenshotResponse() public méthode

public SendScreenshotResponse ( Screenshot screenshot ) : void
screenshot Screenshot
Résultat void

StartRecording() public méthode

If not IsRecording will invoke the RecordingStarted event, starting a new recording.
Handlers in the server and remote process will be be invoked.
public StartRecording ( Capture.Interface.CaptureConfig config ) : void
config Capture.Interface.CaptureConfig The configuration for the recording
Résultat void

StopRecording() public méthode

If IsRecording, will invoke the RecordingStopped event, finalising any existing recording.
Handlers in the server and remote process will be be invoked.
public StopRecording ( ) : void
Résultat void