Table of Contents

Class ImageFormat

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Represents the image format of a captured screenshot.

public class ImageFormat
Inheritance
ImageFormat
Inherited Members

Constructors

ImageFormat()

Initializes a new instance of the ImageFormat class.

public ImageFormat()

Properties

Quality

Gets or sets the quality of the image format.

[JsonPropertyName("quality")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, 1)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double? Quality { get; set; }

Property Value

double?

Remarks

Valid values for this property range from 0.0 to 1.0, inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

Type

Gets or sets the MIME type of the image format. The initial value is "image/png"; the member is always sent, as the protocol makes it required within an image format.

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

string