TImage32.SaveToFile

function SaveToFile(const filename: string): Boolean;

Will fail if filename's extension hasn't been registered as a supported storage format.

See Also

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