Hi Lasse:
You'll want to create a new Bitmap class from System.Drawing, and then
use a Graphics instance to draw into the Bitmap, which you can then
save.
This would look approximately like:
Bitmap drawing = new Bitmap(320, 200, PixelFormat.Format32bppArgb);
Graphics graphics = Graphics.FromImage(drawing);
graphics.DrawString("Hello" , font, brush, x, y);
drawing.Save("hello.jpg", ImageFormat.Jpeg);
And don't forget to Dispose both Graphics and Bitmap objects.
HTH,
--
Scott
http://www.OdeToCode.com/blogs/scott/
n Tue, 28 Sep 2004 16:45:01 +0200, "Lasse Edsvik" <la***@nospam.com>
wrote:
Hello
I was wondering if you guys could show me a short simple example how to get
a known text saved to file.jpg with a font and size?
Im using C#
TIA
/Lasse