Image image = Image.FromFile(previewPath);
Image newImage = image.GetThumbnailImage(256, 256, null, new IntPtr());
Stream IconStream = System.IO.File.OpenWrite(iconPath);
Bitmap bitmap = new Bitmap(newImage);
Icon icon = System.Drawing.Icon.FromHandle(bitmap.GetHicon());
This action is not allowed at this time as the site is in read-only mode. Please try again later.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)