Android Question Create an image "bmp" from a text

vecino

Well-Known Member
Licensed User
Longtime User
Hello, is it possible to create a "bmp" image from a text?
Example:
B4X:
dim txt as string = "Hello world"
dim img as bitmap

img = txt2bmp (txt)
And get something like this:
helloworld.png

Thanks and regards.
 

namnach

Member
Licensed User
Longtime User
hi

i think you can make a simple screendump and cut pixel to your favorite format.
then you can copy / paste or save / load it.
You can make a sub / function for this.

if you need a "txt2bmb" function..
i think you can improvission by a Edit.text
Simple make Hardcopy a retangle over this with rectangle and edge stripes sufficient..cut and save this to bmp..
or other..

this i think you can make as a modul for more works in other projects..

regards

you can make a small panel and with DrawBitmap work..and copy..
 
Last edited:
Upvote 0
Top