SetImageHotspot
Category: Images and Rendering
Signature
SetImageHotspot(imageReference As Integer, x As Integer, y As Integer)
Returns
Void
Description
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.
Example
player = LoadImage("player.png")
SetImageHotspot(player, 16, 24)
DrawImage(player, 100, 200)