ScreenCaptureConfiguration
- C#
更新时间不可用
屏幕采集配置。
public class ScreenCaptureConfiguration
{
public bool isCaptureWindow;
public long displayId;
public Rectangle screenRect;
public long windowId;
public ScreenCaptureParameters @params;
public Rectangle regionRect;
public ScreenCaptureConfiguration()
{
this.isCaptureWindow = false;
this.displayId = 0;
this.windowId = 0;
}
public ScreenCaptureConfiguration(bool isCaptureWindow, long displayId, Rectangle screenRect, long windowId, ScreenCaptureParameters @params, Rectangle regionRect)
{
this.isCaptureWindow = isCaptureWindow;
this.displayId = displayId;
this.screenRect = screenRect;
this.windowId = windowId;
this.@params = @params;
this.regionRect = regionRect;
}
}属性
| 参数名 | 描述 |
|---|---|
isCaptureWindow | |
displayId | |
screenRect | |
windowId | |
parameters | 屏幕共享流的编码参数配置。详见 ScreenCaptureParameters。 |
regionRect | 待共享区域相对于整个屏幕的位置。详见 Rectangle。如不填,则表示共享整个屏幕。如果设置的共享区域超出了屏幕的边界,则只共享屏幕内的内容。 如果将 Rectangle 中的 width 或 height 设为 0 ,则共享整个屏幕。 |