TImage32.LoadFromFile

function LoadFromFile(const filename: string): Boolean;

Requires a TImageFormat registered with TImage32 that's associated with filename's extension.

See Also

Img32.Fmt.BMP, Img32.Fmt.GIF, Img32.Fmt.JPG, Img32.Fmt.PNG, Img32.Fmt.SVG, Img32.FMX, RegisterImageFormatClass, TImageFormat