- This wiki is out of date, use the continuation of this wiki instead
Put screen
From FenixWiki
Contents |
[edit] Definition
INT put_screen ( <INT fileID> , <INT graphID> )
Clears and draws (blits) a graph onto the background in the center.
For more advanced blitting, see:
[edit] Parameters
| INT fileID | - The file that holds the graph. |
| INT graphID | - The graph to draw with. |
[edit] Returns
INT
| 0 | - Invalid map. |
| 1 | - Success. |
[edit] Notes
The center of the specified graph influences its placement.
The following codes are equivalent:
put_screen(f,g);
clear_screen(); put(f,g,graphic_info(0,BACKGROUND,G_WIDTH)/2,graphic_info(0,BACKGROUND,G_HEIGHT)/2);
See clear_screen(), put() and graphic_info().
[edit] Errors
| Invalid map | - The specified map is invalid. |
| Unsupported color depth | - The origin graph's color depth is greater than the destination graph's. |
| Screen Functions | |
| • Clear_screen() • Get_screen() • Put() • Put_screen() • Xput() • | |
