YoYo Games Wiki

draw_surface_stretched(id,x,y,w,h)

From YoYoGames Wiki

Description

This function draws a stretched surface with the given ID on the screen in the position x,y. The surface will be drawn with the width w and height h.

Arguments

  • id (real): name of the variable which holds the ID of the surface (see surface_create).
  • x (real): Horizontal position of surface.
  • y (real): Vertical position of surface.
  • w (real): Width of surface to be stretched.
  • h (real): Height of surface to be stretched.

Remarks

The function must be called in the Draw event.

See Also

Content from GMKB, was used to expand this article. The content was contributed by Eyas Sharaiha.