<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.saveImage</id>
	<title>File.saveImage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.saveImage"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.saveImage&amp;action=history"/>
	<updated>2026-05-03T21:39:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.saveImage&amp;diff=711&amp;oldid=prev</id>
		<title>JoeStrout: Created page with &quot;&lt;c&gt;File.saveImage&lt;/c&gt; saves an Image to disk.  === Arguments ===  {| class=&quot;wikitable&quot; |- ! Parameter Name !! Type !! Default Value !! Meaning |- | ''path'' || string...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.saveImage&amp;diff=711&amp;oldid=prev"/>
		<updated>2021-07-07T17:43:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/File&quot; title=&quot;File&quot;&gt;File&lt;/a&gt;.saveImage&amp;lt;/c&amp;gt; saves an &lt;a href=&quot;/wiki/Image&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt; to disk.  === Arguments ===  {| class=&amp;quot;wikitable&amp;quot; |- ! Parameter Name !! Type !! Default Value !! Meaning |- | &amp;#039;&amp;#039;path&amp;#039;&amp;#039; || string...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;c&amp;gt;[[File]].saveImage&amp;lt;/c&amp;gt; saves an [[Image]] to disk.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Type !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ''path'' || string || null || file name or (partial or full) path of file to create&lt;br /&gt;
|-&lt;br /&gt;
| ''image'' || image || null || picture to save&lt;br /&gt;
|-&lt;br /&gt;
| ''quality'' || number || 80 || JPEG compression quality&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
=== Usage Notes ===&lt;br /&gt;
The image format is determined by the file extension on the given path.  If the path ends in &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;, then the image will be saved in JPEG format, using the compression quality given by the third parameter.  If the path ends in &amp;quot;.tga&amp;quot; then the image is saved in TGA format.  In any other case, the image is saved in PNG format (including transparency).&lt;br /&gt;
&lt;br /&gt;
If successful, this method returns [[null]].  If it fails, it returns an error message.&lt;br /&gt;
&lt;br /&gt;
See also: [[PixelDisplay.getImage]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
</feed>