Look at LoadImageFromFile for details.
function ImLoadImageFromFile(FileName: PAnsiChar; var Image: TImageData): Boolean; cdecl;
ImagingExport (at line 85)