EngineScreenshot
Namespace: E2E.Engine
public sealed record EngineScreenshot : IEquatable<EngineScreenshot>A captured viewport: PNG bytes, and how many image pixels one viewport (CSS) pixel takes.
Inheritance: object
Implements: IEquatable<EngineScreenshot>
Constructors
Section titled “Constructors”EngineScreenshot(byte[], double, int?)
Section titled “EngineScreenshot(byte[], double, int?)”public EngineScreenshot(byte[] Png, double Scale, int? MaskedRegionCount = null)A captured viewport: PNG bytes, and how many image pixels one viewport (CSS) pixel takes.
Parameters
| Name | Type | Description |
|---|---|---|
Png |
byte[] | The image, with every secure field covered. |
Scale |
double | Image pixels per viewport (CSS) pixel. |
MaskedRegionCount |
int? | How many regions the engine covered, so a caller can prove the image is at least as redacted as the tree. Null when the engine cannot say. |
Properties
Section titled “Properties”MaskedRegionCount
Section titled “MaskedRegionCount”public int? MaskedRegionCount { get; init; }How many regions the engine covered, so a caller can prove the image is at least as redacted as the tree. Null when the engine cannot say.
Value: int?
public byte[] Png { get; init; }The image, with every secure field covered.
Value: byte[]
public double Scale { get; init; }Image pixels per viewport (CSS) pixel.
Value: double