You are here : Home » knowledge exchange
public void ThumbnailImage(string FileName, int Width, int Height, string SaveFileName) {// create an image object, using the filename we just retrieved System.Drawing.Image image = System.Drawing.Image.FromFile(FileName); // create the actual thumbnail image System.Drawing.Image thumbnailImage = image.GetThumbnailImage(Width,Height,new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero); // put the image into the memory stream thumbnailImage.Save(SaveFileName, System.Drawing.Imaging.ImageFormat.Jpeg); }


Copyright © 2005-2012 Narola Infotech, Custom Software & Website Development Company | All Rights Reserved.