ThumbnailEX to load multiple file types

Feature Requests for GdPicture.NET.
Post Reply
lpogson
Posts: 1
Joined: Wed May 02, 2012 2:41 pm

ThumbnailEX to load multiple file types

Post by lpogson » Wed May 02, 2012 3:13 pm

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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ThumbnailEX to load multiple file types

Post by Loïc » Wed May 02, 2012 4:04 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest