draw_image_region
Draw one region of an image with an optional pivot, scale and rotation.
Parameters
image— An image.x— Target x.y— Target y.sx— Source x.sy— Source y.width— Source width.height— Source height.pivot_x?— Pivot x, default 0.pivot_y?— Pivot y, default 0.scale?— Scale, default 1.angle?— Clockwise degrees, default 0.
draw_image_region(image, 120, 80, 32, 0, 16, 24)Related: draw_image, draw_sprite.
See the images guide for more examples and limits.