Libraries |
|
Image file | Source Code |
|
|
Function Summary | |||||
boolean |
| ||||
PRIMITIVE_WINDOW |
| ||||
PRIMITIVE_WINDOW |
|
Function Detail |
hasImageExtension
const func boolean: hasImageExtension (in var string: fileName)
-
Determine if fileName uses an image extension. Image extensions are .png, .gif, .jpeg, .jpg, .pbm, .pgm, .ppm, .bpm, .ico .tiff and .tif.
- Parameters:
- imageFileName - Name of the image file.
- Returns:
- TRUE if fileName ends with an image extension, FALSE otherwise.
readImage
const func PRIMITIVE_WINDOW: readImage (inout file: imageFile)
-
Reads an image file into a pixmap. BMP, GIF, ICO, JPEG, PNG, PBM, PGM, PPM and TIFF images are supported. The file is checked for magic numbers and the corresponding read function is used, to read the actual image.
- Parameters:
- imageFile - File that contains an image.
- Returns:
- A pixmap with the image, or PRIMITIVE_WINDOW.value if the file is not in a valid image file format.
readImage
const func PRIMITIVE_WINDOW: readImage (in string: imageFileName)
-
Reads an image file with the given imageFileName into a pixmap. BMP, GIF, ICO, JPEG, PNG, PBM, PGM, PPM and TIFF images are supported. The file is checked for magic numbers and the corresponding read function is used, to read the actual image. The file extension of imageFileName is not used to decide about the image file type.
- Parameters:
- imageFileName - Name of the image file.
- Returns:
- A pixmap with the image, or PRIMITIVE_WINDOW.value if the file cannot be opened or is not in a valid image file format.
|
|