Docs · API reference · Motus.Abstractions

ClipRect Class#

Specifies the clipping region for a screenshot.

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

Inheritance System.Object → ClipRect

Implements System.IEquatable<ClipRect>

Constructors#

ClipRect(double, double, double, double) Constructor#

Specifies the clipping region for a screenshot.

public ClipRect(double X, double Y, double Width, double Height);

Parameters#

X System.Double

The x-coordinate of the top-left corner.

Y System.Double

The y-coordinate of the top-left corner.

Width System.Double

The width of the clipping region.

Height System.Double

The height of the clipping region.

Properties#

Height Property#

The height of the clipping region.

public double Height { get; init; }

Property Value#

System.Double

Width Property#

The width of the clipping region.

public double Width { get; init; }

Property Value#

System.Double

X Property#

The x-coordinate of the top-left corner.

public double X { get; init; }

Property Value#

System.Double

Y Property#

The y-coordinate of the top-left corner.

public double Y { get; init; }

Property Value#

System.Double