Libraries |
|
TGA | Source Code |
|
|
Function Summary | |||||
PRIMITIVE_WINDOW |
| ||||
PRIMITIVE_WINDOW |
|
Function Detail |
readTga
const func PRIMITIVE_WINDOW: readTga (inout file: tgaFile)
-
Reads a TGA file into a pixmap.
- Parameters:
- tgaFile - File that contains a TGA image.
- Returns:
- A pixmap with the TGA image, or PRIMITIVE_WINDOW.value if the file does not start with a valid TGA header.
- Raises:
- RANGE_ERROR - The file is not in the TGA file format.
readTga
const func PRIMITIVE_WINDOW: readTga (in string: tgaFileName)
-
Reads a TGA file with the given tgaFileName into a pixmap.
- Parameters:
- tgaFileName - Name of the TGA file.
- Returns:
- A pixmap with the TGA image, or PRIMITIVE_WINDOW.value if the file cannot be opened or does not start with a valid TGA header.
- Raises:
- RANGE_ERROR - The file is not in the TGA file format.
|
|