Rectangle class
Leave feedback
On this page
Represents a rectangle defined by its edges for cropping purposes.
The Rectangle type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new Rectangle with the specified edges. |
| 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) |
| 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. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.