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()

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

Example

The following script prints the maximum x dimension of the CRect:

R = new_rect()

-- create a CRect object

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

-- print the dimension

Related Topics

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

 

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