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: 2.4.17.5
Syntax
public static List<TagPicture> ReadPicturesFromDirectory( string filename, string album, string searchPattern, bool all )
Parameters
- filename
- Type: SystemString
The fully qualified path and file name to get the picture(s) from. - album
- Type: SystemString
The optional name of the album tag to use to find a picture file (see below). - searchPattern
- Type: SystemString
An optional search string, such as "*.jpg" or "Album*.jpg" or to scan for default images. - all
- Type: SystemBoolean
to return all found pictures or to only return the first found picture.
Return Value
Type: ListTagPictureA list of found TagPicture items or an empty list if no pictures could be found.
Remarks
- <filename>.jpg -
- <filename>.gif -
- <filename>.png -
- <filename>.bmp -
- Folder*.jpg -
- Album*.jpg -
- <album>.jpg -
- <album>.gif -
- <album>.png -
- <album>.bmp -
This methods does not add any pictures to the internal picture tags.
See Also