Im using the following code to fetch image from a file,create an image list by adding all the files from a folder and finally linking it to a listview control to display the thumbnails.The Problem is that if i add 300 Images,the program uses more than 700MB of memory.The image list is taking a lot of memory.Is there any way i can compress/rescale the images at runtime to reduce the memory usage or is there any alternative.
this.t.Images.Add(Image.FromFile(f));
Filelist.Items.Add(f.ToString());
ListViewItem item = new ListViewItem();
this.listview.Items.Add(item);