Tag : Dynamically resize image

Step 1: Call the page where you code for image merging : Image1.ImageUrl = "dynamicimage.aspx"; Step 2: Dynamic Code for image generation and merging (dynamicimage.aspx/dynamicimage.aspx.cs) using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; protected void Page_Load(object sender, EventArgs e) { string testimage = Server.MapPath(@"images/het_image.jpg"); getimage(testimage, 400, 400); // can set imageurl, max-width and max-height using query string… ..

Read more