home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
2200
/
imagic2.exe
/
AFFIMAGE.DOC
next >
Wrap
Text File
|
1993-07-09
|
2KB
|
53 lines
UNIT AffImage;
(********************************
"Affiche une Image" *
Unité en Turbo Pascal *
Burckel François *
*********************************)
INTERFACE
USES Dos,Crt,Graph;
CONST
touches_de_sortie:set of byte=[1,28,57]; { voir IMAG.DOC}
mode:byte=4; (* à (re)préciser; voir tableau
┌──────┬────────────┬──────────┐
│ mode │ résolution │ couleurs │
├──────┼────────────┼──────────┤
│ 1 │ 320x200 │ 16 │
│ 2 │ 640x200 │ 16 │
│ 3 │ 640x350 │ 16 │
│ 4 │ 640x480 │ 16 │
│ 5 │ 800x600 │ 16 │
│ 6 │ 1024x768 │ 16 │
│ 7 │ 320x200 │ 256 │
│ 8 │ 640x400 │ 256 │
│ 9 │ 640x480 │ 256 │
│ 10 │ 800x600 │ 256 │
│ 11 │ 1024x768 │ 256 │
└──────┴────────────┴──────────┘*)
FUNCTION result_aff(
colonne_1,ligne_1: { c'est là qu'il faut afficher le coin }
integer; { supérieur gauche de l'image }
chemin:pathstr { c'est le chemin d'accès au fichier à afficher }
):byte;
(* elle renvoie:
0 si tout s'est bien passé
1 si fichier pas trouvé
2 si la mémoire vive est insuffisante pour l'opération
3 si l'image est trop grande pour être affichée aux coordonnées voulues
4 si fichier illisible
5 si mode graphique impossible à initialiser
*)
IMPLEMENTATION
...
END.