<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AImage</id>
	<title>Legacy:Image - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AImage"/>
	<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Image&amp;action=history"/>
	<updated>2026-10-28T07:47:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Image&amp;diff=689&amp;oldid=prev</id>
		<title>Apollolux: /* Initializers */ GetTileImage</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Image&amp;diff=689&amp;oldid=prev"/>
		<updated>2013-06-04T05:16:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Initializers: &lt;/span&gt; GetTileImage&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:16, 4 June 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:LoadImage|LoadImage]](&amp;#039;&amp;#039;filename&amp;#039;&amp;#039;): Load an image from &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:LoadImage|LoadImage]](&amp;#039;&amp;#039;filename&amp;#039;&amp;#039;): Load an image from &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GrabImage|GrabImage]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;): Grab the screen contents at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;) and store it in a new Image object.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GrabImage|GrabImage]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;): Grab the screen contents at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;) and store it in a new Image object.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetTileImage|GetTileImage]]()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetTileImage|GetTileImage]](&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;tile&#039;&#039;&lt;/ins&gt;)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: Get the [[API:Image|Image]] of &#039;&#039;tile&#039;&#039; in the current map tileset.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:Surface/createImage|Surface.createImage]](): Create a new [[API:Surface|Surface]] using the picture data in the image.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:Surface/createImage|Surface.createImage]](): Create a new [[API:Surface|Surface]] using the picture data in the image.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetSystemUpArrow|GetSystemUpArrow]](): Get the up-pointing arrow image that comes with the Sphere engine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetSystemUpArrow|GetSystemUpArrow]](): Get the up-pointing arrow image that comes with the Sphere engine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetSystemDownArrow|GetSystemDownArrow]](): Get the down-pointing arrow image that comes with the Sphere engine.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:GetSystemDownArrow|GetSystemDownArrow]](): Get the down-pointing arrow image that comes with the Sphere engine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Methods==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Methods==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Apollolux</name></author>
	</entry>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Image&amp;diff=688&amp;oldid=prev</id>
		<title>Apollolux: created from http://web.archive.org/web/20120828115544/http://www.spheredev.org/wiki/Object-Image</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Image&amp;diff=688&amp;oldid=prev"/>
		<updated>2013-06-04T05:14:56Z</updated>

		<summary type="html">&lt;p&gt;created from http://web.archive.org/web/20120828115544/http://www.spheredev.org/wiki/Object-Image&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Image object holds an image in memory to be used for drawing.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Initializers==&lt;br /&gt;
* [[API:LoadImage|LoadImage]](&amp;#039;&amp;#039;filename&amp;#039;&amp;#039;): Load an image from &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:GrabImage|GrabImage]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;): Grab the screen contents at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;) and store it in a new Image object.&lt;br /&gt;
* [[API:GetTileImage|GetTileImage]]()&lt;br /&gt;
* [[API:Surface/createImage|Surface.createImage]](): Create a new [[API:Surface|Surface]] using the picture data in the image.&lt;br /&gt;
&lt;br /&gt;
=== System images ===&lt;br /&gt;
&lt;br /&gt;
* [[API:GetSystemArrow|GetSystemArrow]](): Get the right-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
* [[API:GetSystemUpArrow|GetSystemUpArrow]](): Get the up-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
* [[API:GetSystemDownArrow|GetSystemDownArrow]](): Get the down-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
&lt;br /&gt;
* [[API:Image/clone|Image.clone]](): returns a copy of an existing image object&lt;br /&gt;
* [[API:Image/blit|Image.blit]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;): Draw the image with the top-left corner at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/blitMask|Image.blitMask]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): Draw the image at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;) with &amp;#039;&amp;#039;mask&amp;#039;&amp;#039; as the tinting color.&lt;br /&gt;
* [[API:Image/rotateBlit|Image.rotateBlit]](&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;): Draw the image centered at (&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;), rotated by &amp;#039;&amp;#039;angle&amp;#039;&amp;#039; radians.&lt;br /&gt;
* [[API:Image/rotateBlitMask|Image.rotateBlitMask]](&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): [[API:Image/rotateBlit|rotateBlit]] + mask.&lt;br /&gt;
* [[API:Image/zoomBlit|Image.zoomBlit]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;factor&amp;#039;&amp;#039;): Draw the image zoomed by &amp;#039;&amp;#039;factor&amp;#039;&amp;#039; with the top-left corner at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/zoomBlitMask|Image.zoomBlitMask]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;factor&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): [[API:Image/zoomBlit|zoomBlit]] + mask.&lt;br /&gt;
* [[API:Image/transformBlit|Image.transformBlit]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;): Draw the image with top-left (&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;), top-right (&amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;), bottom-right (&amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;) and bottom-left (&amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/transformBlitMask|Image.transformBlitMask]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): Draw the image stretched to fit 4 coordinates clockwise from the top-left, with a masking color.&lt;br /&gt;
* [[API:Image/createSurface|Image.createSurface]](): Create a new [[API:Surface|Surface]] using the picture data in the image.&lt;br /&gt;
&lt;br /&gt;
==Members==&lt;br /&gt;
*	&amp;#039;&amp;#039;&amp;#039;width&amp;#039;&amp;#039;&amp;#039; The width of the image, in pixels.&lt;br /&gt;
*	&amp;#039;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;#039; The height of the image, in pixels.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Operations cannot be performed on an Image object, so if you need to change the image you should use a [[API:Surface|Surface]] instead.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*	Sphere [[API:Surface|Surface]] object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{API:Image/navbox}}&lt;br /&gt;
[[Category:Objects]]&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>
	</entry>
</feed>