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 Rectangle with the specified edges.

Methods

Method Description
crop Creates a cropped version of the current rectangle by removing specified margins.
crop_int32
to_string Returns a string representation of the rectangle.
equals Determines whether two object instances are equal. (inherited from ValueObject)
equals_object (inherited from ValueObject)
equals_value_object (inherited from ValueObject)
get_hash_code Serves as the default hash function. (inherited from ValueObject)

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