Tilted text
Blitz3D Forums/Blitz3D Programming/Tilted text
| ||
I ran into a little problem today. I need to rotate some text to approx 45 degrees. What I tried first was use the text-command and write the text to an imagebuffer and then use rotateimage to rotate it. That look AWFUL, with or without TformFilter set. Then I tried TformImage, it is a little bit better but still AWFUL. Have anyone had any luck with this simple issue? It looks like this: teksten=CreateImage(500,50) SetBuffer ImageBuffer(teksten) Cls Color 255,255,255 Text 0,0,"testtext" SetBuffer FrontBuffer() TFormFilter 1 TFormImage teksten,1,-1,1,1 ;DrawImage teksten,100,250 ;FreeImage teksten There is also an issue with black outlining on the rotated text when the text is not set to black color. |
| ||
I ran into a little problem today. I need to rotate some text to approx 45 degrees. What I tried first was use the text-command and write the text to an imagebuffer and then use rotateimage to rotate it. That look AWFUL, with or without TformFilter set. Then I tried TformImage, it is a little bit better but still AWFUL. Have anyone had any luck with this simple issue? It looks like this: teksten=CreateImage(500,50) SetBuffer ImageBuffer(teksten) Cls Color 255,255,255 Text 0,0,"testtext" SetBuffer FrontBuffer() TFormFilter 1 TFormImage teksten,1,-1,1,1 ;DrawImage teksten,100,250 ;FreeImage teksten There is also an issue with black outlining on the rotated text when the text is not set to black color. |
| ||
Kinda fixed it setting the background black and the text white. Not perfect, but works ok. |