C# 클래스 Capture.Interface.CaptureInterface

상속: System.MarshalByRefObject
파일 보기 프로젝트 열기: remcoros/Direct3DCapture 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

BeginGetScreenshot() 공개 메소드

public BeginGetScreenshot ( Rectangle region, System.TimeSpan timeout, AsyncCallback callback = null ) : IAsyncResult
region System.Drawing.Rectangle
timeout System.TimeSpan
callback AsyncCallback
리턴 IAsyncResult

Disconnect() 공개 메소드

Tell the client process to disconnect
public Disconnect ( ) : void
리턴 void

DisplayInGameText() 공개 메소드

Display text in-game for the default duration of 5 seconds
public DisplayInGameText ( string text ) : void
text string
리턴 void

DisplayInGameText() 공개 메소드

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

EndGetScreenshot() 공개 메소드

public EndGetScreenshot ( IAsyncResult result ) : Screenshot
result IAsyncResult
리턴 Screenshot

GetScreenshot() 공개 메소드

Get a fullscreen screenshot with the default timeout of 2 seconds
public GetScreenshot ( ) : Screenshot
리턴 Screenshot

GetScreenshot() 공개 메소드

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
리턴 Screenshot

Message() 공개 메소드

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

Ping() 공개 메소드

Used
public Ping ( ) : void
리턴 void

SendScreenshotResponse() 공개 메소드

public SendScreenshotResponse ( Screenshot screenshot ) : void
screenshot Screenshot
리턴 void

StartRecording() 공개 메소드

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
리턴 void

StopRecording() 공개 메소드

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
리턴 void