I would like to get a list of all image files in a given folder.
Dim targetFolder As String = "C:\Data\"
Dim imagefiles = From file In Directory.EnumerateFiles(targetFolder)
For Each f In imagefiles
'do something
Next
The above lists however all file types. How to change it to return only image file types?