GM: draw surface stretched ext

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is draw_surface_stretched_ext(id,x,y,w,h,color,alpha). It appears incorrectly here because of technical restrictions.
The correct title of this article is draw_surface_stretched_ext(). It appears incorrectly here because of technical restrictions.


Arguments

id = name of the variable which holds the ID of the surface (see surface_create).

x = Left position of surface to be drawn.

y = Top position of surface to be drawn.

w = Width of surface to be drawn.

h = Height of surface to be drawn.

color = Colour blending color.

alpha = Transparency of surface.

Limitations

must be in Draw Event.

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

This function draws a surface with the given ID on the screen in the position x,y. The surface drawn will be stretched to have the width of w and height of h. It will have the color blending value of color and the transparency value of alpha (where 1=opaque).

[edit] See Also

This article was originally found at the Game Maker Knowledge Base, contributed by Eyas Sharaiha.
See the talk page for details
Personal tools