| Libraries | 
 | 
JPEG | Source Code | 
 | 
  | 
| Function Summary | |||||
| PRIMITIVE_WINDOW | 
  | ||||
| PRIMITIVE_WINDOW | 
  | ||||
| Function Detail | 
readJpeg
const func PRIMITIVE_WINDOW: readJpeg (inout file: jpegFile)
- 
Reads a JPEG file into a pixmap.
 - Parameters:
 - jpegFile - File that contains a JPEG image.
 
- Returns:
 - A pixmap with the JPEG image, or PRIMITIVE_WINDOW.value if the file does not contain a JPEG magic number.
 
- Raises:
 - RANGE_ERROR - The file is not in the JPEG file format.
 
readJpeg
const func PRIMITIVE_WINDOW: readJpeg (in string: jpegFileName)
- 
Reads a JPEG file with the given jpegFileName into a pixmap.
 - Parameters:
 - jpegFileName - Name of the JPEG file.
 
- Returns:
 - A pixmap with the JPEG image, or PRIMITIVE_WINDOW.value if the file cannot be opened or does not contain a JPEG magic number.
 
- Raises:
 - RANGE_ERROR - The file is not in the JPEG file format.
 
| 
 | 
  | 
