Skip to content

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>

View source

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.

View source

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?

View source

public byte[] Png { get; init; }

The image, with every secure field covered.

Value: byte[]

View source

public double Scale { get; init; }

Image pixels per viewport (CSS) pixel.

Value: double

View source