Skip to content

getBoundingWidth()

Return the width of the object's bounding box.

The bounding box is the smallest upright box that surrounds the object, so it grows as the object rotates. For the object's own width before rotation, use getWidth().

NOTE: This function isn't available to Displays.

Parameters

Once an object item has been created, you can use the following function:

item.getBoundingWidth()

Returns

return width

Value Type Description
width int or float The bounding box's width, in pixels.