Returns filter index of image file format of file specified by FileName.
function GetFileNameFilterIndex(const FileName: string; OpenFileFilter: Boolean): LongInt;
Imaging (at line 527)
Used filter string is defined by GetImageFileFormatsFilter function. Returned index is in range 1..N (as FilterIndex property of TOpenDialog/TSaveDialog)