Skip to main content
RectangleList is a collection of rectangular areas on an image. Use it to add, remove, or clear rectangles in a region.

Methods

Add

Adds a rectangle to the list. Returns the added rectangle.
  • The first overload creates a new rectangle from boundary coordinates.
  • The second overload adds an existing rectangle.

Remove

Removes a rectangle from the list. Returns true if the rectangle was removed, false otherwise.

Clear

Removes all rectangles from the list.