How do you get the size of a visual object?

How do you get the size of a visual object