Libraries
ICO format Source Code
 previous   up   next 

Function Summary
PRIMITIVE_WINDOW
readIco (inout file: icoFile)
Reads an ICO file into a pixmap.
PRIMITIVE_WINDOW
readIco (in string: icoFileName)
Reads an ICO file with the given icoFileName into a pixmap.
string
str (in PRIMITIVE_WINDOW: pixmap, ICO)
Converts a pixmap into a string in ICO format.
void
writeIco (in string: icoFileName, in PRIMITIVE_WINDOW: pixmap)
Writes the pixmap to the file with the given icoFileName in ICO format.

Function Detail

readIco

const func PRIMITIVE_WINDOW: readIco (inout file: icoFile)

Reads an ICO file into a pixmap.

Parameters:
icoFile - File that contains an ICO image.
Returns:
A pixmap with the ICO image, or PRIMITIVE_WINDOW.value if the file does not contain an 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 an 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 an 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 for the ICO format.

writeIco

const proc: writeIco (in string: icoFileName, in PRIMITIVE_WINDOW: pixmap)

Writes the pixmap to the file with the given icoFileName in ICO format.

Parameters:
icoFileName - Name of the ICO file to be created.
pixmap - The pixmap to be written in ICO format.


 previous   up   next