Rectangle class

Rectangle class

Represents a rectangle defined by its edges for cropping purposes.

The Rectangle type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the Rectangle struct with specified edges.

Methods

Method Description
crop Creates a cropped version of the current rectangle by removing specified margins.

Properties

Property Description
bottom The bottom edge of the rectangle.
height The height of the rectangle based on top and bottom edges.
left The left edge of the rectangle.
right The right edge of the rectangle.
top The top edge of the rectangle.
width The width of the rectangle based on left and right edges.

See Also