How to

create thumbnail image

Published: 21. January 2009 | Updated: 21. January 2009
License: Microsoft Public License (MS-PL)
Categories: GDI
Tags: C# GDI
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Drawing;

Code

Image img = Image.FromFile(@"C:\image.jpg");

Image thumbnail = img.GetThumbnailImage(100, 100, null, new IntPtr());
Send us feedback about this snippet »



Related Snippets: