Create Thumbnail for large image in C# in 1 line of code
//import these file in you application
using System.Drawing;
new Bitmap("image to generate thumb").GetThumbnailImage(100, 100, null, IntPtr.Zero).Save("where to save image");
"image to generate thumb" is your Image path for which you want to generate thumbnail
"where to save image" is the location with name of thumbnail
using System.Drawing;
new Bitmap("image to generate thumb").GetThumbnailImage(100, 100, null, IntPtr.Zero).Save("where to save image");
"image to generate thumb" is your Image path for which you want to generate thumbnail
"where to save image" is the location with name of thumbnail
Comments
Post a Comment