home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Falcon 030 Power 2
/
F030_POWER2.iso
/
ST_STE
/
MAGS
/
ICTARI03.ARJ
/
ictari.03
/
GFA
/
GFA_CODE
/
PICUTIL2.LST
< prev
Wrap
File List
|
1989-07-29
|
964b
|
38 lines
DIM scr$(0)
scr$(0)=SPACE$(32066)
'
' ** GET RESOLOTION: 0 = Low, 1 = Medium, 2 = Mono **
' ** Notes: XBIOS(4) is the GFA call to do this **
res|=XBIOS(4)
'
FILESELECT #"~~~ Select A Picture: ~~~","\*.PI?","DEGASPIC",fload$
'
IF EXIST(fload$)
OPEN "I",#1,fload$
length%=LOF(#1)
BGET #1,V:scr$(0),2
CLOSE #1
IF length%=32034 OR length%=32066
show|=1
IF res|<>PEEK(V:scr$(0)+1)
ALERT 2,"Picture is different|resolution to screen| | Display:",1,"Yes|No",show|
ENDIF
IF show|=1
BLOAD fload$,V:scr$(0)
pall$=MID$(scr$(0),1,34)
bitmp$=MID$(scr$(0),35,32000)
~XBIOS(6,L:V:pall$+2)
SPUT bitmp$
PRINT CHR$(7);
~INP(2)
ELSE
ALERT 1,"| Wrong|Resolution",1," Blast ",abort|
ENDIF
ELSE
ALERT 1,"| Invalid|Picture File",1," Blast ",abort|
ENDIF
ELSE
ALERT 1,"|File Not Found| Or|Cancel Detected",1," Blast ",abort|
ENDIF
EDIT