DrawImage_Transform(slot, x, y, w, h, src_x, src_y, src_w, src_h, angle, center_x, center_y, flip_h, flip_v)

Can be used to apply multiple transformations in one command.

slot - the image
x, y, w, h - The area of the screen to draw to. The image will be scaled to area specified so this will effectively zoom the image as well.
src_x, src_y, src_w, src_h - The portion of the image to draw.
angle - the angle in degrees to rotate the image by
center_x, center_y - The center point the image will be rotated around
flip_h - set to true to flip the image horizontally or false for no flip
flip_v - set to true to flip the image vertically or false for no flip


Example: