[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Reads data for the graphic from a file.
Source position: graphics.pp line 847
public procedure TGraphic.LoadFromFile( |
const Filename: string |
); virtual; |
Filename |
|
The name of the file containing the graphic data. |
LoadFromFile reads data for the graphic from the local file system. FileName contains the name of the file on the local file system with data for the graphic, and may contain UTF-8-encoded characters in the file name.
LoadFromFile creates a temporary TFileStreamUTF8 instance that is used to read the contents of the file by calling LoadFromStream. Any existing image data in the class instance is discarded. An Exception can be raised in LoadFromStream if Filename does not contain a valid file name.
Raises an Exception if an invalid file name is passed to the method.
|
Reads graphic data from a stream. |
|
|
Loads the from the specified stream for the given MIME type. |
|
|
Loads a resource with the specified name from the given handle. |
|
|
Load the graphic data from a Lazarus Resource (.lrs) file. |
|
|
LoadFromClipboardFormat - Replace the current image with the contents of the clipboard. |
|
|
Writes graphic data to the specified file name. |
Version 3.2 | Generated 2024-02-25 | Home |