<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://fenixdocs.com/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>EXPORTTEST - Revision history</title>
		<link>http://fenixdocs.com/index.php?title=EXPORTTEST&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.1</generator>
		<lastBuildDate>Fri, 01 May 2026 08:55:05 GMT</lastBuildDate>
		<item>
			<title>Sandman: /* Example */</title>
			<link>http://fenixdocs.com/index.php?title=EXPORTTEST&amp;diff=1932&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:maps]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' map_xputnp ( &amp;lt;'''INT''' destinationFileID&amp;gt; , &amp;lt;'''INT''' destinationGraphID&amp;gt; , &amp;lt;'''INT''' originFileID&amp;gt; , &amp;lt;'''INT''' originGraphID&amp;gt; , &amp;lt;'''INT''' x&amp;gt; , &amp;lt;'''INT''' y&amp;gt; , &amp;lt;'''INT''' angle&amp;gt; , &amp;lt;'''INT''' scale_x&amp;gt; , &amp;lt;'''INT''' scale_y&amp;gt; , &amp;lt;'''INT''' blitflags&amp;gt;  )&lt;br /&gt;
&lt;br /&gt;
Draws ([[blit]]s) a [[graph]] onto another graph.&lt;br /&gt;
&lt;br /&gt;
If the advanced parameters aren't needed, [[map_put]]() or [[map_xput]]() can be used.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''INT''' destinationFileID || - The [[file]] that holds the destination graph.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' destinationGraphID || - The [[graph]] to draw on.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' originFileID || - The [[file]] that holds the origin graph.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' originGraphID || - The [[graph]] to draw with.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' x || - Where on the destination graph's x-axis to put the graph.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' y || - Where on the destination graph's y-axis to put the graph.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' angle || - What [[angle]] to draw the graph at.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' scale_x|| - What [[size]] to draw the origin graph's x-axis at (also see [[size_x]])&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' scale_y || - What [[size]] to draw the origin graph's y-axis at (also see [[size_y]]).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' blitflags || - What [[blit flags]] to draw the graph with.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[true]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The x and y parameters denote where to draw the graph, that is, where the center of the to be drawn graph will be. Blit flags can be used to give the drawing (blitting) a special effect.&lt;br /&gt;
&lt;br /&gt;
When angle is 0 and size is 100, the speed is greater, because the graph doesn't need rotating or scaling.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Unsupported color depth || - The origin graph's color depth is greater than the destination graph's.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program watskeburt;&lt;br /&gt;
Global&lt;br /&gt;
    destgraph;&lt;br /&gt;
    origgraph;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // Set the mode to 16bit and some resolution&lt;br /&gt;
    set_mode(320,200,16);&lt;br /&gt;
&lt;br /&gt;
    // Makes the destination graphic a red square&lt;br /&gt;
    destgraph=new_map(100,100,16);&lt;br /&gt;
    map_clear(0,destgraph,rgb(255,0,0));&lt;br /&gt;
&lt;br /&gt;
    // Makes the origin graphic a blue square&lt;br /&gt;
    origgraph=new_map(100,100,16);&lt;br /&gt;
    map_clear(0,origgraph,rgb(0,0,255));&lt;br /&gt;
&lt;br /&gt;
    // Draws the blue square on the center of the red square transparently,&lt;br /&gt;
    // at a random angle and a random size&lt;br /&gt;
    map_xputnp(0,destgraph,0,origgraph,50,50,rand(-180000,180000),rand(50,150),rand(50,150),4);&lt;br /&gt;
    map_xputnp(0,destgraph,0,origgraph,50,50,rand(-180000,180000),rand(50,150),rand(50,150),4);&lt;br /&gt;
&lt;br /&gt;
    // Shows the final graph&lt;br /&gt;
    put(0,destgraph,160,100);&lt;br /&gt;
&lt;br /&gt;
    Loop&lt;br /&gt;
         frame;&lt;br /&gt;
    End&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[set_mode]](), [[new_map]](), [[map_clear]](), [[put]]()&lt;br /&gt;
&lt;br /&gt;
This will result in something like:&amp;lt;br /&amp;gt;&lt;br /&gt;
http://wwwhome.cs.utwente.nl/~bergfi/fenix/wiki/map_xputnp.PNG&lt;/div&gt;</description>
			<pubDate>Tue, 01 May 2007 02:04:26 GMT</pubDate>			<dc:creator>Sandman</dc:creator>			<comments>http://fenixdocs.com/index.php/Talk:EXPORTTEST</comments>		</item>
	</channel>
</rss>