Checks given memory for every supported image file format and if the memory is in one of them returns its string identifier (which can be used in LoadFromStream/LoadFromMem type functions).
function DetermineMemoryFormat(Data: Pointer; Size: LongInt): string;
Imaging (at line 88)
If memory is not in any of the supported formats empty string is returned.