readIco
const func PRIMITIVE_WINDOW: readIco (inout file: icoFile)
-
Reads a ICO file into a pixmap.
- Parameters:
- icoFile - File that contains a ICO image.
- Returns:
- A pixmap with the ICO image, or PRIMITIVE_WINDOW.value if the file does not contain a ICO magic number.
- Raises:
- RANGE_ERROR - The file is not in the ICO file format.
readIco
const func PRIMITIVE_WINDOW: readIco (in string: icoFileName)
-
Reads a ICO file with the given icoFileName into a pixmap.
- Parameters:
- icoFileName - Name of the ICO file.
- Returns:
- A pixmap with the ICO image, or PRIMITIVE_WINDOW.value if the file cannot be opened or does not contain a ICO magic number.
- Raises:
- RANGE_ERROR - The file is not in the ICO file format.
str
const func string: str (in PRIMITIVE_WINDOW: pixmap, ICO)
-
Converts a pixmap into a string in ICO format.
- Parameters:
- pixmap - Pixmap to be converted.
- Returns:
- a string with data in ICO format.
- Raises:
- RANGE_ERROR - The pixmap is too large vor the ICO format.