CRect:SetXmax CRect:Xmax

CRect:Xmin


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

Syntax

nXmin = CRect:Xmin()

    nXmin is a number and may be positive or negative.

Example

The following script fragment prints the minimum x dimension of the CRect:

 

R = CRect:new()

-- create a CRect object

Printf("Xmin=%.2lf\n", R:Xmin())

-- print the dimension

Related Topics

CRect, Get, Image Coordinate System, Subpixel Coordinate Definition