CRect:Size
The Size method returns the x and y length of the CRect object. The size is measured in pixel coordinates.
nX, nY = CRect:Size() where |
nX and nY are numbers representing the width and height. They may be positive or negative.
The following script prints the x and y dimensions of the CRect:
|
-- create a CRect object |
|
-- returns the width and height |
|
-- prints nx=200, ny=300 |