Hi
try this example:
First :- create a web form and add Fileupload and Button controls
Secod: in code behind
private Bitmap yaz(System.Drawing.Image resim, int width, int hieght, string name, float font)
{
Bitmap resmim = new Bitmap(resim, width, hieght);
System.Drawing.Graphics graf = System.Drawing.Graphics.FromImage(resmim);
System.Drawing.SolidBrush firca = new SolidBrush(System.Drawing.Color.Red);
System.Drawing.Font fnt = new Font("calibri", font);//font type
System.Drawing.SizeF size = new SizeF(0, 0);
System.Drawing.PointF coor = new PointF(0, 0);
System.Drawing.RectangleF kutu = new RectangleF(coor, size);
StringFormat sf = new StringFormat();
sf.FormatFlags = StringFormatFlags.DirectionVertical;
graf.DrawString(name, fnt, firca, kutu, sf);
return resmim;
}
protected void Button1_Click(object sender, EventArgs e)
{
System.Drawing.Image i = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream);
Bitmap b = yaz(i, i.Width, i.Height, "Yasser Zaid", 16); //
b.Save(Server.MapPath("~/Ads/" + FileUpload1.FileName));
}
Hope this helps
Good Luck