Category: Images and Rendering
SetImageHotspot(imageReference As Integer, x As Integer, y As Integer)
Void
Sets the draw hotspot of a loaded image in pixels.
After this call, DrawImage, DrawImageEx, DrawImageSub, and DrawNineSlice use the supplied x and y hotspot as the position that is drawn at the command's destination coordinates.
The hotspot may be negative or outside the image bounds. New images start with a hotspot of 0, 0.
player = LoadImage("player.png")
SetImageHotspot(player, 16, 24)
DrawImage(player, 100, 200)