[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets a string with the file extension used for the specified image class type.
Source position: graphics.pp line 1922
function GraphicExtension( |
GraphicClass: TGraphicClass |
):string; |
GraphicClass |
|
Graphic class used to determine the file extension. |
File extension for the image type.
Calls GetPicFileFormats to get the list which maps TGraphicClass (or descendent) references to a file extension.
GraphicExtension iterates over the values in the mapping list in reverse order, and compares the class name for the list item to the class name in GraphicClass. When a match is found, the GetFormatExt method for the item is called to get the return value for the function.
The return value is an empty string ('') when a mapping for GraphicClass is not found in the list.
Version 3.2 | Generated 2024-02-25 | Home |