home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
aminet
/
jdlib4_6.lha
/
Procs
/
_Screen_Convert.AMOS
/
_Screen_Convert.amosSourceCode
Wrap
AMOS Source Code
|
2008-12-10
|
2KB
|
67 lines
Load Iff "SYS:Bild",1 : Rem Bild laden
Multi Wait : Rem mu�, um Bild anzeigen zu lassen
Screen Open 2,640,512,16,Hires : Rem Screen mit gew�nschter Aufl�sung
Flash Off : Curs Off : Rem zur Sicherheit
Get Palette 1 : Rem Original-Palette �bernehmen
LOW_TO_HI[1,2] : Rem Bild-Konvertierung[Quell-,Ziel-Screen]
Wait Key : Edit : Rem Taste und Aus
Rem Konvertierung von Low-Res to Hi-Res:
Rem 1. Low-Res to Med-Res
Rem 2. Med-Res to Hi-Res
Rem ist schneller als in einem Schritt!
Rem Assembler-Routine ist nur unwesentlich
Rem schneller
' Low-Res to Med-Res
Procedure LOW_TO_HI[S,D]
For X=0 To 320
Screen Copy S,X,0,X+1,256 To D,2*X,0
Screen Copy S,X,0,X+1,256 To D,2*X+1,0
Next
End Proc
' Med-Res to Low-Res
Procedure HI_TO_LOW[S,D]
For X=0 To 640
Screen Copy S,2*X,0,2*X+1,256 To D,X,0
Next
End Proc
' Low-Res to Interlace
Procedure LOW_TO_LOW_INTER[S,D]
For Y=0 To 256
Screen Copy S,0,Y,320,Y+1 To D,0,2*Y
Screen Copy S,0,Y,320,Y+1 To D,0,2*Y+1
Next
End Proc
' Interlace to Low-Res
Procedure LOW_INTER_TO_LOW[S,D]
For Y=0 To 512
Screen Copy S,0,2*Y,320,2*Y+1 To D,0,Y
Next
End Proc
' Med-Res to Hi-Res
Procedure HI_TO_HI_INTER[S,D]
For Y=0 To 256
Screen Copy S,0,Y,640,Y+1 To D,0,2*Y
Screen Copy S,0,Y,640,Y+1 To D,0,2*Y+1
Next
End Proc
' Hi-Res to Med-Res
Procedure HI_INTER_TO_HI[S,D]
For Y=0 To 512
Screen Copy S,0,2*Y,640,2*Y+1 To D,0,Y
Next
End Proc
' Interlace to Hi-Res
Procedure LOW_INTER_TO_HI_INTER[S,D]
For X=0 To 320
Screen Copy S,X,0,X+1,512 To D,2*X,0
Screen Copy S,X,0,X+1,512 To D,2*X+1,0
Next
End Proc
' Hi-Res to Interlace
Procedure HI_INTER_TO_LOW_INTER[S,D]
For X=0 To 640
Screen Copy S,2*X,0,2*X+1,256 To D,X,0
Next
End Proc