GM: draw surface part ext
From GMpedia.org Wiki
- The correct title of this article is draw_surface_part_ext(id,left,top,w,h,x,y,xscale,yscale,color,alpha). It appears incorrectly here because of technical restrictions.
- The correct title of this article is draw_surface_part_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). left = This is the position on the x axis that the surface will start to be drawn in. So everything that is located before left (has an x value less than left) will not be drawn.
top = this is the position on the y axis that the surface will stat to be drawn in. So everything tat is located before top (has a y value less tan top) will not be drawn.
w = Width of surface to be drawn.
h = Height of surface to be drawn.
x = Left position of surface to be drawn.
y = Top position of surface to be drawn.
xscale = Horizontal scaling of surface.
yscale = Vertical scaling of surface.
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 part of the surface with the given ID on the screen in the position x,y. The part of the surface drawn starts from the point left,top and has the width value of width and height value of height. Its width is scaled to xscale (where 1=no change) and its height is called to yscale (where 1=no change), it is drawn with the blending color value of color and alpha transparency value of alpha (where 1=opaque).
[edit] See Also
- Surfaces - a complete Game Maker tutorial in surfaces.
See the talk page for details



