DrawImageEx

Category: Images and Rendering

Back to System Functions


Signature

DrawImageEx(imageReference As Integer, x As Integer, y As Integer, rotation As Double) DrawImageEx(imageReference As Integer, x As Integer, y As Integer, rotation As Double, scale As Double)

Returns

Void

Description

Queues an image like DrawImage, but also rotates it and optionally scales it uniformly.

The rotation is measured in degrees and is centered on the current image hotspot. When scale is omitted, it defaults to 1.0.

Example

player = LoadImage("player.png") SetImageHotspot(player, 15, 15) DrawImageEx(player, 160, 120, 45) DrawImageEx(player, 160, 120, 90, 2.0)