draw_surface_part(id,left,top,w,h,x,y)

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.

 

Example

draw_surface_part(surface,100,120,60,65,32,16);

 

This function draws part of a surface with the given ID on the screen in the position x,y, it starts drawing from the surface from the point left,top with the width of w and height of h.

 

 

surfaces_left_top

 

esh_corp11 - Revision #2