Skip to content

Screenshot

Namespace: E2E.Decision

public sealed record Screenshot : IEquatable<Screenshot>

Pixels as the decision model receives them: the runner’s capture without its masking count (upstream’s Screenshot, Omit<ExecutorPixels, 'maskedRegionCount'>).

Inheritance: object

Implements: IEquatable<Screenshot>

View source

Screenshot(byte[], string, int, int, double)

Section titled “Screenshot(byte[], string, int, int, double)”
public Screenshot(byte[] Data, string MediaType, int Width, int Height, double Scale)

Pixels as the decision model receives them: the runner’s capture without its masking count (upstream’s Screenshot, Omit<ExecutorPixels, 'maskedRegionCount'>).

Parameters

Name Type Description
Data byte[] The encoded image.
MediaType string The media type of <code class=“paramref”>Data</code>.
Width int Width in image pixels.
Height int Height in image pixels.
Scale double Image pixels per viewport (CSS) pixel.

public byte[] Data { get; init; }

The encoded image.

Value: byte[]

public int Height { get; init; }

Height in image pixels.

Value: int

public string MediaType { get; init; }

The media type of <code class=“paramref”>Data</code>.

Value: string

public double Scale { get; init; }

Image pixels per viewport (CSS) pixel.

Value: double

public int Width { get; init; }

Width in image pixels.

Value: int