home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / animutil / fastgfx / fg303d / exbas.arj / FGDOC / EXAMPLES / BASIC / 09-02.BAS < prev    next >
Encoding:
BASIC Source File  |  1993-09-30  |  343 b   |  20 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. DIM Header AS STRING*128
  6.  
  7. Status = FGpcxhead("CORAL.PCX"+CHR$(0),Header)
  8. IF Status = -1 THEN
  9.    PRINT "Can't open CORAL.PCX."
  10.    STOP
  11. ELSEIF Status = -2 THEN
  12.    PRINT "CORAL.PCX is not a PCX file."
  13.    STOP
  14. END IF
  15.  
  16. Mode = FGpcxmode(Header)
  17. PRINT "Optimal display mode is"; Mode
  18.  
  19. END
  20.