drawimage - is x,y in middle of sprite or top left

Blitz3D Forums/Blitz3D Beginners Area/drawimage - is x,y in middle of sprite or top left

Dax Trajero(Posted 2004) [#1]
Is the x,y co-ordinates in the drawimage command referring to the upper corner of the sprite or the middle of it ?


puki(Posted 2004) [#2]
I think it is upper left - try drawing at 0,0 - then you'll know (I assume, although I don't do 2D stuff)


soja(Posted 2004) [#3]
Yes. You can change it using HandleImage.


EOF(Posted 2004) [#4]
If you have AutoMidHandle set to TRUE then any images loaded thereafter will have their axis/handle centered.


_PJ_(Posted 2004) [#5]
...Or just MidHandle for individual images :)


Steve Elliott(Posted 2004) [#6]
Yes thats right - as soja said (just testing my updated sig).