- This wiki is out of date, use the continuation of this wiki instead
Get screen
From FenixWiki
(Difference between revisions)
Revision as of 11:25, 14 June 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 20:29, 30 November 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
Line 34: | Line 34: | ||
</pre> | </pre> | ||
Used in example: [[key]](), [[save_png]]() | Used in example: [[key]](), [[save_png]]() | ||
+ | |||
+ | {{Funcbox | ||
+ | | category = Maps | ||
+ | }} |
Revision as of 20:29, 30 November 2007
Definition
INT get_screen ( )
Creates a new map containing a snapshot of the screen.
The map will contain everything, including background, processes, drawings and text. The newly created graphic will be located in the File with FileID 0, the system FPG.
Returns
INT : GraphID
0 | - Some error. |
>0 | - The GraphID of the graphic created. |
Example
Program snapshot; Global int my_map; Begin Repeat if(key(_F5)) my_map = get_screen(); save_png(0,my_map,"snapshot.PNG"); while(key(_F5)) frame; end end frame; Until(key(_esc)) End
Used in example: key(), save_png()
Maps Functions | |
• Graphic_info() • Map_block_copy() • Map_clear() • Map_clone() • Map_put() • Map_put_pixel() • Map_xput() • Map_xputnp() • New_map() • Save_png() • Unload_map() • |