getmaxy

This function is used to get the maximum y-coordinate in the physical coordinates of the graphics window.

int getmaxy();

Parameters

None

Return Value

The maximum y-coordinate in the physical coordinates of the graphics window.

Remarks

This function is obsolete and is declared only in graphics.h.

It is recommended that use getheight() - 1 instead of this function.

getmaxy() always returns the maximum y-coordinates in the physical coordinates of the graphics window, regardless of the zoom setting. Equivalent to getheight() - 1. For example, if the graphics window is initialized to 640 x 480, getheight() returns 480 and getmaxx() returns 479.

Examples

None

(贡献者:Krissi  编辑