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#
The x-coordinate of the top-left corner.
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#
Width Property#
The width of the clipping region.
public double Width { get; init; }
Property Value#
X Property#
The x-coordinate of the top-left corner.
public double X { get; init; }
Property Value#
Y Property#
The y-coordinate of the top-left corner.
public double Y { get; init; }