If you have created any e-commerce site, you must have used thumbnail image to display product. You may have seen many sites which display thumbnail image and product description and when user click on image it shows large image of the product. You can do this by uploading two different images for each product OR by uploading a single image and runtime generate thumbnail image from that. You can easily do that in dotnet using “GetThumbnailImage” method. Below is the code for that,
System.Drawing.Image imgOriginalImage =
new Bitmap(Server.MapPath(“.”) + “\\Images\\bike1.jpg”);
using (imgThumbImage =
private bool Abort()
Fig – (1) Generate thumbnail image
Happy Programming !!