CRect:SetXmin CRect:Xmin

CRect:SetXmax


The SetXmax method initializes the maximum x value for the CRect object.

Syntax

CRect:SetXmax( nXmax )

    nXmax is a number and may be positive or negative.

Example

The following script fragment sets the maximum x dimension of the CRect to xmax=40.5:

 

R = CRect:new()

-- create a CRect object

R:SetXmax( 40.5 )

-- specify the dimension

Related Topics

CRect, Set, Image Coordinate System, Subpixel Coordinate Definition