surface_get_height


语法:

surface_get_height(surface_id);

参数 描述
surface_id 将要获取高度的表面层ID。


返回:

Real(实数)


描述

This function simply returns the height, in pixels, of the indexed surface.

注:由于储存在显存里,表面层运行时存在随时停止并退出的可能性。在直接引用它们之前,你需要 一直使用 surface_exists检测表面层是否退出。更多信息请查阅 表面层


例如:

sh = surface_get_height(surf);

上述代码将在变量sh中储存索引变量为surf的表面层的高度。