Platform |
Win32, x64 |
Purpose |
To read in a GIF file. |
Syntax |
INTEGER(7) FUNCTION IMPORT_GIF@( FILENAME, IMAGEN, NIMAGES, ERROR ) |
Description |
Reads in a GIF file and returns a DIB handle to the image. The handle can then be used with DIB_PAINT@ and DIB_PRINT@. IMAGEN is an input value being the number of the image in the file to display. NIMAGES is returned as the number of images in the file. ERROR returns one of the following: |
0 |
success |
|
2 |
unable to read file |
|
4 |
insufficient memory |
|
5 |
not a GIF file |
|
10 |
unable to open file |
Return value |
Returns a handle to the image or zero on failure. |
See also |
GET_SCREEN_DIB@, RELEASE_SCREEN_DIB@, IMPORT_PCX@, CLIPBOARD_TO_SCREEN_BLOCK@, IMPORT_BMP@, IMPORT_IMAGE@, IMPORT_FILE_IMAGE@ |