draw_surface_stretched(id, x, y, w, h);
参数 描述 id The unique ID value of the surface to draw. x The x position of where to draw the surface. y The y position of where to draw the surface. w The width at which to draw the surface. h The height at which to draw the surface.
This function simply takes a surface and stretches it over the given width and height so that it occupies the area. As with draw_surface you can specify a surface and then the x / y position in the room for the surface to be drawn at and finally a width and a height (which must be pixel values).注：由于储存在显存里，表面层运行时存在随时停止并退出的可能性。在直接引用它们之前，你需要 一直使用 surface_exists检测表面层是否退出。更多信息请查阅 表面层。
draw_surface_stretched(surf, 10, 10, 100, 100);
This will draw the surface indexed in the variable "surf" with its left corner at (10,10). Its width and height are both set to 100, which is how much space it will occupy regardless of the surface's actual width and height.