Platform | Win32, x64 |
Purpose |
To obtain information from a graphics file. |
Syntax |
SUBROUTINE GET_IM_INFO@( FILENAME, WIDTH, HEIGHT |
Description |
This subroutine accesses the information that is contained within a .BMP or .PCX file supplied in FILENAME. The relevant data is returned in the supplied parameters. The WIDTH and HEIGHT will contain the dimension of the image. WIDTH, HEIGHT and NB_COLOURS are arrays. NB_IMAGES is returned as the number of images and n should set at a value which is always greater than or equal to NB_IMAGES. FORMAT will be returned as a single character string, either 'BMP' or 'PCX'. ERROR will return: |
0 |
SUCCESS |
|
2 |
READ ERROR |
|
5 |
NOT A BMP FILE |
|
10 |
BAD FILE |
|
15 |
UNKNOWN FORMAT |
See also |