BASS.NET API for the Un4seen BASS Audio LibraryTAG_INFOReadPicturesFromDirectory Method (String, String, String, Boolean)BASS.NET API for the Un4seen BASS Audio Library
Scans the directory of the filename location for additional pictures and returns any found pictures.

Namespace: Un4seen.Bass.AddOn.Tags
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static List<TagPicture> ReadPicturesFromDirectory(
	string filename,
	string album,
	string searchPattern,
	bool all


Type: SystemString
The fully qualified path and file name to get the picture(s) from.
Type: SystemString
The optional name of the album tag to use to find a picture file (see below).
Type: SystemString
An optional search string, such as "*.jpg" or "Album*.jpg" or to scan for default images.
Type: SystemBoolean
to return all found pictures or to only return the first found picture.

Return Value

Type: ListTagPicture
A list of found TagPicture items or an empty list if no pictures could be found.

When scanning for default images (searchPattern is ) the following order will be used:
  1. <filename>.jpg -
  2. <filename>.gif -
  3. <filename>.png -
  4. <filename>.bmp -
  5. Folder*.jpg -
  6. Album*.jpg -
  7. <album>.jpg -
  8. <album>.gif -
  9. <album>.png -
  10. <album>.bmp -
In the above list <filename> resp. <album> will be replaced by the actual parameter values.

This methods does not add any pictures to the internal picture tags.

See Also