CRect:Ymax


The Ymax method returns the value of the maximum y value for the CRect object, measured in pixel coordinates.

Syntax

nYmax = CRect:Ymax()

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

Example

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

R = new_rect()

-- create a CRect object

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

-- print the dimension

Related Topics

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

 

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