setrotate with drawtext
BlitzMax Forums/BlitzMax Beginners Area/setrotate with drawtext
| ||
HI, how i can use a other rotatingpoint (PIVOT) as use this setrotate xx drawtext "text",100,100 this will only rotate on the left/up point ? |
| ||
Hi panno you need to use the image handle commands to set the "pivot". |
| ||
Panno, if you want to find the exact centre of your text string, use TextWidth & TextHeight: Off the top of my head.... w = TextWidth("TESTY!")/2 h = TextHeight("TESTY!")/2 SetHandle w,h SetRotation r DrawText "TESTY!",320,240 |
| ||
thx skunk and rik ! i will test mfg panno |
| ||
You might want to check the spintext sample. |
| ||
Graphics 640,480,0 repeat Cls ang:+1 SetRotation ang text$ = "A Spinning String of TEXT" SetHandle(TextWidth(text$)/2,TextHeight(text$)/2) DrawText text$,MouseX(),MouseY() Flip Until KeyHit(KEY_ESCAPE) |