home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd465
/
programs
/
icon's_to_iff.amos
/
icon's_to_iff.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1993-01-08
|
1KB
|
38 lines
' This Program will convert your icon file to a picture.
' each icon will have it's own border around it so you can easily grab
' the icon's back at a later date.
'
'
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Program written by Brett George
'
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'
Screen Open 0,320,256,32,0
Paper 0 : Cls 0 : Curs Off : Ink 1 : Flash Off
Centre "Icon's to iff converter"
Print : Cmove ,2
A$=Fsel$("*.Abk","","Please choose icon","bank to be converted to iff")
If A$="" Then Print "You must select a file!" : Edit
If Exist(A$)=False Then Print "File does not exist" : Edit
Load A$
If Length(2)=False Then Print "You must load a icon file" : Edit
Print "You have a total of";Length(2);" Icon's. "
Input "Which icon should I draw first?";SS
If SS=0 Then SS=1
Get Icon Palette : Cls 0
For Z=SS To Length(2)
XX=Deek(Icon Base(Z))*16
YY=Deek(Icon Base(Z)+2)
If YY>CY Then Add BY,YY : CY=YY
If X+XX>320 Then Add Y,CY+6 : X=0 : CY=0
Exit If Y+YY+3>256
Box X,Y To X+XX+3,Y+YY+3
Paste Icon X+2,Y+2,Z
Add X,XX+6
Wait 10
Next
Save Iff Fsel$("","Icon's.Iff","Please choose name to save","Iff picture.")
Print Z-1;"/";
Print Str$(Length(2))-" ";" Icon's printed to screen"
Erase 1