Converting text to .JPG or .GIF?

N

Newbie

Does anybody know of a vb.net callable library that will allow me to
convert text into a (preferably) .JPG file or .GIF file?
 
R

rowe_newsgroups

Does anybody know of a vb.net callable library that will allow me to
convert text into a (preferably) .JPG file or .GIF file?

GDI+?

Thanks,

Seth Rowe
 
K

kimiraikkonen

Does anybody know of a vb.net callable library that will allow me to
convert text into a (preferably) .JPG file or .GIF file?

Take a look at system.drawing namespace for GDI+ classes.
 
H

Herfried K. Wagner [MVP]

Newbie said:
Does anybody know of a vb.net callable library that will allow me to
convert text into a (preferably) .JPG file or .GIF file?

\\\
Using Image As New Bitmap(<size, etc.>)
Using Canvas As Graphics = Graphics.FromImage(Image)
Canvas.DrawString(...)
End Using
Image.Save("C:\test.gif", ImageFormat.Gif)
End Using
///

Note that 'DrawString' has an overload which allows specifying a layout
rectangle.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top