CRect:Size
The Size method returns the x and y length of the CRect object. The size is measured in pixel coordinates.
nSizeX, nSizeY = CRect:Size() nX and nY are numbers and may be positive or negative. |
The following script prints the x and y dimensions of the CRect:
|
-- create a CRect object |
|
--set the rectangle data |
|
-- returns the width and height |
|
-- prints nx=200, ny=300 |
CRect class, Get, Image Coordinate System, Subpixel Coordinate Definition
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.