User207054734 posted
Hi,
You can do something like this:-
int
height = 500;
int width = 960;
System.Drawing.
Pen myPen;
myPen =
new System.Drawing.Pen(System.Drawing.Color.Red);
Bitmap
bmp = new
Bitmap(width, height);
Graphics g =
Graphics.FromImage(bmp);//from image can be your image on which you
want to write..
g.Clear(
Color.White);
//Then USe g.DrawString(string,font,Brush,x,y);
loke this:-
Font f =
new
Font(FontFamily.GenericSansSerif,12);
g.DrawString("Hello-World", f,
Brushes.Aqua, 12, 30);
bmp.Save(Server.MapPath("Image.jpg"),
ImageFormat.Jpeg);
myPen.Dispose();
bmp.Dispose();
g.Dispose();
Enjoy.......