Convert text into picture

Hi
I need to write text into picture and store it as picture
Any advaice…

Thanx
Kris

Check out FromData and GetData at http://documentation.xojo.com/index.php/Picture .

Not sure if this is what you are asking, but you can create a Picture and draw the text into it:

Dim p As New Picture(100, 100) p.Graphics.DrawString("Hello", 20, 50)

Thanks, both helped me a lot.

I used this:
dim p as new picture (340,280,32)

p.graphics.Bold=True
p.graphics.Italic=True
p.graphics.TextFont=“Helvetica”
p.graphics.TextSize=18
p.graphics.ForeColor=&cff0000
p.Graphics.drawstring(“Hello World”, 10,100)

Canvas1.Backdrop=p

Thanks again,
Kris