Pic.ScreenLoad | Part of Pic module |
Syntax | Pic.ScreenLoad (fileName : string, x, y, mode : int)
| ||||||||||||||||||||
Description | Pic.ScreenLoad displays a picture from a file straight to the screen. The fileNameparameter must give the format of the file:
The x and y parameters set the lower left hand corner of the picture. The mode parameter has one of the following values:
| ||||||||||||||||||||
Details | Various versions of Turing can convert different formats of files. Turing 4.1 for Windows can load BMP files and JPG files. Unfortunately, due to strictly enforced patents on the GIF compression algorithm, Turing will not implement importation of GIF pictures until the patents expire in June 2004.
| ||||||||||||||||||||
Details | At the time of writing, MacOOT supported only PICT files. Consult the release notes to find out which file formats are currently supported.
| ||||||||||||||||||||
Details | If the Pic.ScreenLoad fails, then Error.Last will return a non-zero value indicating the reason for the failure. Error.LastMsg will return a string which contains the textual version of the error.
| ||||||||||||||||||||
Example | The program displays a picture on the screen from the PCX file mypic.BMP.
Pic.ScreenLoad ("mypic.bmp", 0, 0, picCopy) | ||||||||||||||||||||
Status | Exported qualified. This means that you can only call the function by calling Pic.ScreenLoad, not by calling ScreenLoad.
|