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#
FullPage Property#
Whether to capture the full scrollable page.
public bool FullPage { get; init; }
Property Value#
OmitBackground Property#
Whether to hide the default white background and allow transparency.
public bool OmitBackground { get; init; }
Property Value#
Path Property#
Path to save the screenshot to.
public string? Path { get; init; }
Property Value#
Quality Property#
The quality of the image (0-100). Only applicable for JPEG.
public System.Nullable<int> Quality { get; init; }
Property Value#
Type Property#
The image format.
public Motus.Abstractions.ScreenshotType Type { get; init; }