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>
Constructors
Section titled “Constructors”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. |
Properties
Section titled “Properties”public byte[] Data { get; init; }The encoded image.
Value: byte[]
Height
Section titled “Height”public int Height { get; init; }Height in image pixels.
Value: int
MediaType
Section titled “MediaType”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