<?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=Image.create</id>
	<title>Image.create - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Image.create"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Image.create&amp;action=history"/>
	<updated>2026-05-23T21:05:46Z</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=Image.create&amp;diff=668&amp;oldid=prev</id>
		<title>JoeStrout: Created page with &quot;The &lt;c&gt;Image.create&lt;/c&gt; method creates a new Image object filled with solid color.  You can then add content to this image with &lt;c&gt;Image.setPixel&lt;/c&gt;.  === Argumen...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Image.create&amp;diff=668&amp;oldid=prev"/>
		<updated>2021-01-28T03:19:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/Image&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt;.create&amp;lt;/c&amp;gt; method creates a new &lt;a href=&quot;/wiki/Image&quot; title=&quot;Image&quot;&gt;Image&lt;/a&gt; object filled with solid color.  You can then add content to this image with &amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/Image.setPixel&quot; title=&quot;Image.setPixel&quot;&gt;Image.setPixel&lt;/a&gt;&amp;lt;/c&amp;gt;.  === Argumen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;lt;c&amp;gt;[[Image]].create&amp;lt;/c&amp;gt; method creates a new [[Image]] object filled with solid color.  You can then add content to this image with &amp;lt;c&amp;gt;[[Image.setPixel]]&amp;lt;/c&amp;gt;.&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;
| ''width'' || number || 64 || width of image to create, in pixels&lt;br /&gt;
|-&lt;br /&gt;
| ''height'' || number || 64 || height of image to create, in pixels&lt;br /&gt;
|-&lt;br /&gt;
| ''color'' || [[color]] || &amp;quot;#000000&amp;quot; || color to fill the new image&lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
=== Usage Notes ===&lt;br /&gt;
This method is called on the [[Image]] class itself, rather than on a particular image instance.&lt;br /&gt;
&lt;br /&gt;
Note that another way to create an image at runtime is to draw into a [[PixelDisplay]], and then grab the image with [[PixelDisplay.getImage]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;img = Image.create(10, 10, color.red)&lt;br /&gt;
gfx.drawImage img, 480, 320&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
</feed>