draw_surface_stretched_ext(id, x, y, w, h, col, alpha);
参数 描述 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. colour The colour with which to colour the surface. alpha The alpha with which to blend the surface.
N/A(无返回值)
This function does exactly the same as the draw_surface_stretched function with the added ability to set the colour blending and alpha value for the surface when it is drawn (similar to the function draw_surface_ext).
注:由于储存在显存里,表面层运行时存在随时停止并退出的可能性。在直接引用它们之前,你需要 一直使用 surface_exists检测表面层是否退出。更多信息请查阅 表面层。
draw_surface_stretched_ext(surf, x, y, 200, 200, c_white, 0.5);
This will draw the given surface with its left corner at the instances x/y position and it will be stretched to occupy an area of 200x200 pixels with no blending, but partial transparency.