Page 1 of 1

ThumbnailEX to load multiple file types

Posted: Wed May 02, 2012 3:13 pm
by lpogson
ThumbnailEx1.LoadFromDirectory([Path],[False],[Pattern])

This is currently using the DirectoryInfo.GetFiles Method.
With this current setup you can only use 0ne pattern at a time.

Recommendation:
If you build function to use the FileSystem.GetFiles(String, SearchOption, String()) Method you would be able to use an array of strings for the pattern rather than just one pattern.
For example: I want to load jpg and png. I can make the pattern : *.jpg;*.png


See: http://msdn.microsoft.com/en-us/library/ms127994.aspx
With your way a programmer would have to loop through all the desired patterns one by one.
With the the FileSystem.GetFiles (String, SearchOption, String()) Method all you have to do is one call.

Re: ThumbnailEX to load multiple file types

Posted: Wed May 02, 2012 4:04 pm
by Loïc
Hello,

We've already implemented this feature for the next upcoming GdPicture.NET 9 version.
See: https://www.gdpicture.com/blog/gdpicture-net-9-beta/

Kind regards,

Loïc