Thumbnail is the reduced sized image of the given image. We can use thumbnail where we need to display large number of images. Using GetThumbnailImage method we can create thumbnail for any give image. The basic syntax used to create thumbnail using C# is - Image img = Image1.GetThumbnailImage(thumbnail.Height, thumbnail.Width, Image.GetThumbnailImageAbort callback, IntPtr callbackData) Here is the example - Bitmap testimage = (Bitmap)TestApplication.Properties.Resources.testimage.GetThumbnailImage(450,550, null, IntPtr.Zero);
Learn Tips and tricks, Concepts, Ideas for software development