CRect:Ymin CRect:Width

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

    nYmax is a number and may be positive or negative.

Example

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

 

R = CRect:new()

-- create a CRect object

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

-- print the dimension

Related Topics

CRect, Get, Image Coordinate System, Subpixel Coordinate Definition