Wish BitmapCreator - DrawText & DrawTextRotated

Star-Dust

Expert
Licensed User
Longtime User

LucaMs

Expert
Licensed User
Longtime User
Senza nome.png
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This was the initial purpose behind BCTextEngine. The first test revealed that it will not work due to antialiasing which means that you cannot take nicely drawn text and simply rotate it. The result is very bad.
BCTextEngine has turned to something else (more important).

You will need to use B4XCanvas for the rotated text. You can draw it with the canvas and then draw it over BitmapCreator.
 

LucaMs

Expert
Licensed User
Longtime User
you cannot take nicely drawn text and simply rotate it. The result is very bad.

Unfortunately I know, in the sense that I drew a wheel with N sectors, drew some text in the "central" one, rotated the wheel and continued in this way for each sector. The result:

1609844065152.png


(to tell the truth I have already forgotten the method I used :confused:; however, after writing the text, on each rotation the previously drawn texts lost quality, as you can see).
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
I'm trying and I must say that it is not so simple to calculate the radius for each letter.
Using B4XCanvas you can get a B4XRect for a single character which have Width & Height but depending on the angle you don't know which to use, the character is not squared.

I know, I should open a thread :) (soon)
 
Top