CRect:Xmin CRect:Ymin

CRect:Xmax


The Xmax method returns the value of the maximum x value for the CRect object, measured in pixel coordinates.

Syntax

nXmax = CRect:Xmax()

Example

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

Related Topics

CRect, Get, Image Coordinate System, Subpixel Coordinate Definition