Friday, 15 April 2011

c# - ASP.net image processing and adding this image to Image control -



c# - ASP.net image processing and adding this image to Image control -

i have next code:

bmp = new bitmap("c:\\resim.jpg"); graphics g = graphics.fromimage(bmp); g.drawstring(metin, new font(metin, 9, fontstyle.regular), new solidbrush(system.drawing.color.black), 10, 10);

with code can create new image. showing image on web page i.e showing image control. can do?

you have save modified bitmap new file on server , assign image command imageurl property:

//after changes made: bmp.save(server.mappath("~/images/resim_new.jpg")); //set image control: image1.imageurl = "~/images/resim_new.jpg";

c# asp.net

No comments:

Post a Comment