CRect:Width CRect:Xmin

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, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.