Drawline image

BlitzMax Forums/BlitzMax Beginners Area/Drawline image

hub(Posted 2010) [#1]
Hi !
- i want replace the classic drawline with another function that use an image and scale it. the Image width is 1px and Image height 3 px.
Have you and idea to do this ?

Thanks !


Czar Flavius(Posted 2010) [#2]
If you need it to be 100 pixels long, try SetScale(1.0, 100.0) and draw it at the leftmost bit. For up/down you will need to rotate by 90 and swap the scale factors.


Jesse(Posted 2010) [#3]
you can use DrawImageRect but you are going to have to figure out a way to center the x,y axis sense the axis will always be in the top left corner. I have done this before so if you need me to post source code for you, just let me know and I can work a quick sample for you.


hub(Posted 2010) [#4]
finally i updated this code :
http://www.blitzbasic.com/Community/posts.php?topic=85427#966668
Thanks for the help !