Ask Your Question

Revision history [back]

Basically a bounding box is stored as a rectangle. This means that you have the following parameters stored

EITHER

  • Left top corner point
  • Right bottom corner point

OR

  • Left top corner point
  • Width and height

In both cases you can use the properties of a rectangle to access it dimensions. A small code snippet

Rectangle retrieved_rectangle;
int width = retrieved_rectangle.width;
int heigth = retrieved_rectangle.heigth;