CRect:SetXmax


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

Syntax

CRect:SetXmax( nXmax )

bullet.gif    nXmax is a number and may be positive or negative.

Example

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

R = new_rect()

-- create a CRect object

R:SetXmax( 40.5 )

-- specify the dimension

Related Topics

CRect class, Set, Image Coordinate System, Subpixel Coordinate Definition

 

Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.