Docs · API reference · Motus.Abstractions

ScreenshotOptions Class#

Options for taking a screenshot.

public sealed record ScreenshotOptions : System.IEquatable<Motus.Abstractions.ScreenshotOptions>

Inheritance System.Object → ScreenshotOptions

Implements System.IEquatable<ScreenshotOptions>

Properties#

Clip Property#

The clipping region for the screenshot.

public Motus.Abstractions.ClipRect? Clip { get; init; }

Property Value#

ClipRect

FullPage Property#

Whether to capture the full scrollable page.

public bool FullPage { get; init; }

Property Value#

System.Boolean

OmitBackground Property#

Whether to hide the default white background and allow transparency.

public bool OmitBackground { get; init; }

Property Value#

System.Boolean

Path Property#

Path to save the screenshot to.

public string? Path { get; init; }

Property Value#

System.String

Quality Property#

The quality of the image (0-100). Only applicable for JPEG.

public System.Nullable<int> Quality { get; init; }

Property Value#

System.Nullable<System.Int32>

Type Property#

The image format.

public Motus.Abstractions.ScreenshotType Type { get; init; }

Property Value#

ScreenshotType