DrawImageRect
Draws part of an image.
DrawImageRect ( image,x,y,rect_x,rect_y,rect_width,rect_height[,frame] )
Parameters
- image
- the image's handle.
- x
- where the part goes, across.
- y
- where it goes, down.
- rect_x
- the part's left edge within the image.
- rect_y
- its top edge within the image.
- rect_width
- how wide the part is.
- rect_height
- how tall it is.
- frame (optional)
- which frame to take it from.
Description
Draws just part of an image, with see-through parts left out as DrawImage does. Useful for one tile from a sheet of tiles.
