Difference between revisions of "SaveMap"

From CMSC 420
(Created page with "Saves the current map to a file. The image file should be saved with the correct name. It should match our image file: same dimensions, same cities, same colors, same partitio...")
 
Line 4: Line 4:
 
* name (filename to save the image to)
 
* name (filename to save the image to)
  
== Possible <output> ==
+
== Possible ''<output>'' ==
 
* (None)
 
* (None)
  
== Possible <error> types ==
+
== Possible ''<error>'' types ==
 
* (None)
 
* (None)
  
== <success> Example ==
+
== ''<success>'' Example ==
 
<code>
 
<code>
 
     <success>
 
     <success>

Revision as of 00:12, 11 September 2013

Saves the current map to a file. The image file should be saved with the correct name. It should match our image file: same dimensions, same cities, same colors, same partitions, etc. How to keep track of your graphic map is discussed in the previous section. Printing it out is discussed there too.

Parameters[edit]

  • name (filename to save the image to)

Possible <output>[edit]

  • (None)

Possible <error> types[edit]

  • (None)

<success> Example[edit]

   <success>
       <command name="saveMap"/>
       <parameters>
           <name value="map_1"/>
       </parameters>
       <output/>
   </success>