CRect:Xmax
The Xmax method returns the value of the maximum x value for the CRect object, measured in pixel coordinates.
nXmax = CRect:Xmax() |
nXmax is a number and may be positive or negative.
The following script fragment prints the maximum x dimension of the CRect:
R = CRect:new() |
-- create a CRect object |
Printf("Xmax=%.2lf\n", R:Xmax()) |
-- print the dimension |
CRect, Get, Image Coordinate System, Subpixel Coordinate Definition