Hey all,
I wondered how can i rotate text with DrawText()?
how to rotate text in a image with DrawText()?
Re: how to rotate text in a image with DrawText()?
DrawText() to sprite output then rotate sprite.
Re: how to rotate text in a image with DrawText()?
how to get the sprite back on the image?
Re: how to rotate text in a image with DrawText()?
You're right there is no way to get a bitmap from a screen or sprite without inline JS.
You probably have to do this with inline JS->CSS3 right now. I beleive CSS3 has a way to rotate things.
You probably have to do this with inline JS->CSS3 right now. I beleive CSS3 has a way to rotate things.
-
- Posts: 74
- Joined: Thu May 26, 2016 11:09 am
Re: how to rotate text in a image with DrawText()?
you can use the VectorDrawing lib :
Code: Select all
OpenWindow(0, 0, 0, 800,600, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0,0,0,800,600)
LoadFont(0, "arial", 20)
StartVectorDrawing(CanvasVectorOutput(0))
VectorFont(FontID(0), 50)
t.s="Hello world"
tw=VectorTextWidth(t)/2
th=VectorTextHeight(t)/2
For i=0 To 180-1 Step 20
RotateCoordinates(400,300,20)
MovePathCursor(400-tw,300-th)
VectorSourceColor($44000000)
DrawVectorText(t)
StrokePath(1)
Next
StopVectorDrawing()
Re: how to rotate text in a image with DrawText()?
lol I didn't even know there was a text function in vector lib. I never used it.