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