Output text in a graphic file

Output text in a graphic file

am 28.11.2007 20:31:56 von Matt Pollicove

Hi there....

I'd like to be able to output text in a BMP or JPG file programatically
for use in a wallpaper file.... something like the Sysinternals BGInfo
is the effect I am looking for. (Don't worry, I'm not trying recreate
BGInfo, I want to be able to pass different kinds of information using
this technique, it's just the best analogy I could come up with)

Any help would be appreciated.

mp

Re: Output text in a graphic file

am 29.11.2007 08:52:53 von Roman Wagner

Take a look at Graphics.FromImage
http://msdn2.microsoft.com/en-us/library/system.drawing.grap hics.fromimage.aspx
Draw your text with Graphics.DrawString and after all save the image.