The string path must name a portable bitmap graphics file.
pnm:type-dimensionsreturns a list of 4 items:
- A symbol describing the type of the file named by path.
- The image width in pixels.
- The image height in pixels.
- The maximum value of pixels assume in the file.
The current set of file-type symbols is:
Reads the portable bitmap graphics file named by path into array. array must be the correct size and type for path. array is returned. — Function: pnm:image-file->array path
pnm:image-file->arraycreates and returns an array with the portable bitmap graphics file named by path read into it.