Newer
Older
using Newtonsoft.Json;
using ChromeDevTools.Protocol.Types;
namespace ChromeDevTools
{
namespace Protocol
{
namespace Page
{
/// <summary>
/// Capture page screenshot.
/// </summary>
[CommandResponseAttribute(typeof(CaptureScreenshotCommandResponse))]
Björn Eßwein
committed
public class captureScreenshot : IDevtoolsCommandWithResponse
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
/// <summary>
/// Gets or sets Image compression format (defaults to png).
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string Format { get; set; }
/// <summary>
/// Gets or sets Compression quality from range [0..100] (jpeg only).
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public long? Quality { get; set; }
/// <summary>
/// Gets or sets Capture the screenshot of a given region only.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Viewport Clip { get; set; }
/// <summary>
/// Gets or sets Capture the screenshot from the surface, rather than the view. Defaults to true.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public bool? FromSurface { get; set; }
}
/// <summary>
/// Capture page screenshot response.
/// </summary>
public class CaptureScreenshotCommandResponse : IDevtoolsResponse
{
/// <summary>
/// Gets or sets Base64-encoded image data.
/// </summary>
public string Data { get; set; }
}
}
}
}