søndag 26. april 2009

public void Form1_Paint(object sender, PaintEventArgs e)
{
////Graphics surface;
//Graphics surface = this.CreateGraphics();
//Font drawFont = new Font("Arial", 20);
//SolidBrush drawBrush = new SolidBrush(Color.Black);
//StringFormat drawFormat = new StringFormat();
//drawFormat.FormatFlags = StringFormatFlags.DirectionRightToLeft;
//surface.DrawString(teXt , drawFont, drawBrush, 220.0f, 50.0f, drawFormat);
System.Drawing.Graphics graphicsObj;
graphicsObj = this.CreateGraphics();
Font myFont = new System.Drawing.Font("Helvetica", 40, FontStyle.Italic);
Brush myBrush = new SolidBrush(System.Drawing.Color.Red);
graphicsObj.DrawString(teXt, myFont, myBrush, 30, 30);

Ingen kommentarer:

Legg inn en kommentar