The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



LoadFromFile


Unit: SDL_sdlcolors
Class: TColorArray
Declaration: function LoadFromFile (FileName: string; AdjustSize: boolean): boolean;

The function LoadFromFile loads the color array elements which have been stored previously by the method StoreOnFile. The parameter FileName specifies the name of the data file. LoadFromFile returns a TRUE value, if the data has been successfully read from the disk. If the parameter AdjustSize is set to TRUE, the size of the color array is adjusted to hold the entire data on the file. If AdjustVectorSize is FALSE the data will be only read if it fits into the array.



Last Update: 2023-Feb-06