problem in using asp.net stream graphic and image

M

miladhatam

hi
i want to put the name of my site in corner of my images
i've used from graphics and bitmap class and i have no problem with
putting the text
but it make problem with other works in my page
for example :
//-------------------------- begin
Bitmap bitMapImage = new
System.Drawing.Bitmap(Server.MapPath("image/" + 2 + ".jpg"));

Graphics graphicImage = Graphics.FromImage(bitMapImage);
graphicImage.SmoothingMode = SmoothingMode.AntiAlias;
Rectangle rect = new Rectangle(1,1,50,50);

graphicImage.DrawString("irankohan.com", new Font("Arial", 12,
FontStyle.Bold), SystemBrushes.WindowText, new Point(13, 27));
graphicImage.DrawArc(new Pen(Color.White, 3), 90, 235, 150, 50, 0,
360);
Response.ContentType = "image/jpeg";

bitMapImage.Save(Response.OutputStream, ImageFormat.Jpeg);
//--------------------------- end
Label lb = new Label();
lb.Text = "milad";
Controls.Add(lb);

i wanna show information about the picture dynamically but it can't
be shown
why ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top