Converting text to .JPG or .GIF?

  • Thread starter Thread starter Newbie
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top