Loading and Storing Graphics
Go Up to Working with Pictures
All pictures and graphics in Delphi can load their images from files and store them back again (or into different files). You can load or store the image of a picture at any time.
To load an image into a picture from a file, call the LoadFromFile method of the picture. To save an image from a picture into a file, call the SaveToFile method of the picture.
LoadFromFile and SaveToFile each take the name of a file as the only parameter. LoadFromFile uses the extension of the file name to determine what kind of graphic object it will create and load. SaveToFile saves whatever type of file is appropriate for the type of graphic object being saved.